com.mchange.v1.lang.holders
Class SynchronizedBooleanHolder

java.lang.Object
  extended by com.mchange.v1.lang.holders.SynchronizedBooleanHolder
All Implemented Interfaces:
ThreadSafeBooleanHolder

Deprecated. use classes in com.mchange.v2.holders

public class SynchronizedBooleanHolder
extends Object
implements ThreadSafeBooleanHolder

An implementation of ThreadSafeBooleanHolder that synchronizes on itself for all acesses and mutations of the underlying boolean.

See Also:
VolatileBooleanHolder

Constructor Summary
SynchronizedBooleanHolder()
          Deprecated.  
 
Method Summary
 boolean getValue()
          Deprecated. gets the value of the wrapped boolean
 void setValue(boolean b)
          Deprecated. 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

SynchronizedBooleanHolder

public SynchronizedBooleanHolder()
Deprecated. 
Method Detail

getValue

public boolean getValue()
Deprecated. 
Description copied from interface: ThreadSafeBooleanHolder
gets the value of the wrapped boolean

Specified by:
getValue in interface ThreadSafeBooleanHolder

setValue

public void setValue(boolean b)
Deprecated. 
Description copied from interface: ThreadSafeBooleanHolder
sets the value of the wrapped boolean

Specified by:
setValue in interface ThreadSafeBooleanHolder