Top Description Fields Constructors Methods
com.mchange.v2.holders

public Class SynchronizedBooleanHolder

extends Object
implements ThreadSafeBooleanHolder, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, com.mchange.v2.holders.ThreadSafeBooleanHolder
Imports
java.io.*, com.mchange.v2.ser.UnsupportedVersionException

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 static final long
pack-priv transient boolean
private static final short

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized boolean
getValue()

Implements com.mchange.v2.holders.ThreadSafeBooleanHolder.getValue.

gets the value of the wrapped boolean

private void
public synchronized void
setValue(boolean b)

Implements com.mchange.v2.holders.ThreadSafeBooleanHolder.setValue.

sets the value of the wrapped boolean

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID
valueback to summary
pack-priv transient boolean value
VERSIONback to summary
private static final short VERSION

Constructor Detail

SynchronizedBooleanHolderback to summary
public SynchronizedBooleanHolder()

Method Detail

getValueback to summary
public synchronized boolean getValue()

Implements com.mchange.v2.holders.ThreadSafeBooleanHolder.getValue.

Doc from com.mchange.v2.holders.ThreadSafeBooleanHolder.getValue.

gets the value of the wrapped boolean

readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException
setValueback to summary
public synchronized void setValue(boolean b)

Implements com.mchange.v2.holders.ThreadSafeBooleanHolder.setValue.

Doc from com.mchange.v2.holders.ThreadSafeBooleanHolder.setValue.

sets the value of the wrapped boolean

writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException