Package com.mchange.v2.holders
Class VolatileBooleanHolder
- java.lang.Object
-
- com.mchange.v2.holders.VolatileBooleanHolder
-
- All Implemented Interfaces:
ThreadSafeBooleanHolder
,java.io.Serializable
public class VolatileBooleanHolder extends java.lang.Object implements ThreadSafeBooleanHolder, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VolatileBooleanHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getValue()
gets the value of the wrapped booleanvoid
setValue(boolean value)
sets the value of the wrapped boolean
-
-
-
Method Detail
-
getValue
public boolean getValue()
Description copied from interface:ThreadSafeBooleanHolder
gets the value of the wrapped boolean- Specified by:
getValue
in interfaceThreadSafeBooleanHolder
-
setValue
public void setValue(boolean value)
Description copied from interface:ThreadSafeBooleanHolder
sets the value of the wrapped boolean- Specified by:
setValue
in interfaceThreadSafeBooleanHolder
-
-