Package com.mchange.v1.lang.holders
Class SynchronizedBooleanHolder
- java.lang.Object
-
- com.mchange.v1.lang.holders.SynchronizedBooleanHolder
-
- All Implemented Interfaces:
ThreadSafeBooleanHolder
public class SynchronizedBooleanHolder extends java.lang.Object implements ThreadSafeBooleanHolder
Deprecated.use classes in com.mchange.v2.holdersAn implementation of ThreadSafeBooleanHolder that synchronizes on itself for all acesses and mutations of the underlying boolean.- See Also:
VolatileBooleanHolder
-
-
Constructor Summary
Constructors Constructor Description SynchronizedBooleanHolder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
getValue()
Deprecated.gets the value of the wrapped booleanvoid
setValue(boolean b)
Deprecated.sets the value of the wrapped boolean
-
-
-
Method Detail
-
getValue
public boolean getValue()
Deprecated.Description copied from interface:ThreadSafeBooleanHolder
gets the value of the wrapped boolean- Specified by:
getValue
in interfaceThreadSafeBooleanHolder
-
setValue
public void setValue(boolean b)
Deprecated.Description copied from interface:ThreadSafeBooleanHolder
sets the value of the wrapped boolean- Specified by:
setValue
in interfaceThreadSafeBooleanHolder
-
-