org.multiverse.transactional.primitives
Class TransactionalLong

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

public final class TransactionalLong
extends Object

A reference for a long.

Author:
Peter Veentjer

Constructor Summary
TransactionalLong()
           
TransactionalLong(long value)
           
 
Method Summary
 void await(long desired)
           
 long awaitLargerOrEqualThan(long than)
           
 long awaitLargerThan(long than)
           
 long awaitNotEqualThan(long than)
           
 long awaitSmallerOrEqualThan(long than)
           
 long awaitSmallerThan(long than)
           
 long dec()
           
 long dec(long amount)
           
 boolean equals(Object thatObj)
           
 long get()
           
 int hashCode()
           
 long inc()
           
 long inc(long amount)
           
 long set(long newValue)
          Sets the new value and returns the old value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionalLong

public TransactionalLong()

TransactionalLong

public TransactionalLong(long value)
Method Detail

get

public long get()

await

public void await(long desired)

awaitLargerThan

public long awaitLargerThan(long than)

awaitLargerOrEqualThan

public long awaitLargerOrEqualThan(long than)

awaitSmallerThan

public long awaitSmallerThan(long than)

awaitSmallerOrEqualThan

public long awaitSmallerOrEqualThan(long than)

awaitNotEqualThan

public long awaitNotEqualThan(long than)

set

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

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

inc

public long inc()

inc

public long inc(long amount)

dec

public long dec()

dec

public long dec(long amount)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object thatObj)
Overrides:
equals in class Object


Copyright © 2008-2010 Multiverse. All Rights Reserved.