public class SynchronizedBooleanHolder extends java.lang.Object implements ThreadSafeBooleanHolder, java.io.Serializable
VolatileBooleanHolder,
Serialized Form| Constructor and Description |
|---|
SynchronizedBooleanHolder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getValue()
gets the value of the wrapped boolean
|
void |
setValue(boolean b)
sets the value of the wrapped boolean
|
public boolean getValue()
ThreadSafeBooleanHoldergetValue in interface ThreadSafeBooleanHolderpublic void setValue(boolean b)
ThreadSafeBooleanHoldersetValue in interface ThreadSafeBooleanHolder