org.multiverse.transactional.refs
Class BooleanRef

java.lang.Object
  extended by org.multiverse.transactional.refs.BooleanRef

public class BooleanRef
extends java.lang.Object

A Ref for storing a boolean.

Author:
Peter Veentjer

Constructor Summary
BooleanRef()
          Creates a new BooleanRef with false as va
BooleanRef(boolean value)
           
 
Method Summary
 void await(boolean desired)
           
 boolean equals(java.lang.Object thatObj)
           
 boolean get()
           
 int hashCode()
           
 boolean set(boolean newValue)
          Sets the new value and returns the old value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanRef

public BooleanRef()
Creates a new BooleanRef with false as va


BooleanRef

public BooleanRef(boolean value)
Method Detail

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public final boolean equals(java.lang.Object thatObj)
Overrides:
equals in class java.lang.Object


Copyright © 2008-2010 Multiverse. All Rights Reserved.