org.multiverse.transactional.refs
Class BooleanRef
java.lang.Object
org.multiverse.transactional.refs.BooleanRef
public class BooleanRef
- extends Object
A Ref for storing a boolean.
- Author:
- Peter Veentjer
|
Constructor Summary |
BooleanRef()
Creates a new BooleanRef with false as va |
BooleanRef(boolean value)
|
BooleanRef
public BooleanRef()
- Creates a new BooleanRef with false as va
BooleanRef
public BooleanRef(boolean value)
get
public final boolean get()
await
public final void await(boolean desired)
set
public final boolean set(boolean newValue)
- Sets the new value and returns the old value.
- Parameters:
newValue - the new value.
- Returns:
- the previous value.
toString
public final String toString()
- Overrides:
toString in class Object
hashCode
public final int hashCode()
- Overrides:
hashCode in class Object
equals
public final boolean equals(Object thatObj)
- Overrides:
equals in class Object
Copyright © 2008-2010 Multiverse. All Rights Reserved.