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