|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mchange.v2.holders.SynchronizedBooleanHolder
public class SynchronizedBooleanHolder
An implementation of ThreadSafeBooleanHolder that synchronizes on itself for all acesses and mutations of the underlying boolean.
VolatileBooleanHolder,
Serialized Form| Constructor Summary | |
|---|---|
SynchronizedBooleanHolder()
|
|
| Method Summary | |
|---|---|
boolean |
getValue()
gets the value of the wrapped boolean |
void |
setValue(boolean b)
sets the value of the wrapped boolean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedBooleanHolder()
| Method Detail |
|---|
public boolean getValue()
ThreadSafeBooleanHolder
getValue in interface ThreadSafeBooleanHolderpublic void setValue(boolean b)
ThreadSafeBooleanHolder
setValue in interface ThreadSafeBooleanHolder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||