Top Description Fields Constructors Methods
com.mchange.v1.lang.holders

public Class SynchronizedBooleanHolder

extends Object
implements ThreadSafeBooleanHolder
Class Inheritance
All Implemented Interfaces
com.mchange.v1.lang.holders.ThreadSafeBooleanHolder

Deprecated

use classes in com.mchange.v2.holders

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

Field Summary

Modifier and TypeField and Description
pack-priv boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized boolean
getValue()

Implements com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.getValue.

gets the value of the wrapped boolean

public synchronized void
setValue(boolean b)

Implements com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.setValue.

sets the value of the wrapped boolean

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

valueback to summary
pack-priv boolean value

Constructor Detail

SynchronizedBooleanHolderback to summary
public SynchronizedBooleanHolder()

Method Detail

getValueback to summary
public synchronized boolean getValue()

Implements com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.getValue.

Doc from com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.getValue.

gets the value of the wrapped boolean

setValueback to summary
public synchronized void setValue(boolean b)

Implements com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.setValue.

Doc from com.mchange.v1.lang.holders.ThreadSafeBooleanHolder.setValue.

sets the value of the wrapped boolean