org.multiverse.transactional.primitives
Class TransactionalBoolean

java.lang.Object
  extended by org.multiverse.transactional.primitives.TransactionalBoolean

public final class TransactionalBoolean
extends java.lang.Object

Author:
Peter Veentjer

Constructor Summary
TransactionalBoolean()
          Creates a new TransactionalBoolean with false as va
TransactionalBoolean(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

TransactionalBoolean

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


TransactionalBoolean

public TransactionalBoolean(boolean value)
Method Detail

get

public boolean get()

await

public void await(boolean desired)

set

public boolean set(boolean newValue)
Sets the new value and returns the old value.

Parameters:
newValue - the new value.
Returns:
the previous value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

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

equals

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


Copyright © 2008-2010 Multiverse. All Rights Reserved.