org.multiverse.transactional.primitives
Class TransactionalByte

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

public final class TransactionalByte
extends java.lang.Object

A reference for a primitive byte.

Author:
Peter Veentjer

Constructor Summary
TransactionalByte()
           
TransactionalByte(byte value)
           
 
Method Summary
 void await(byte desired)
           
 byte awaitLargerOrEqualThan(byte than)
           
 byte awaitLargerThan(byte than)
           
 byte awaitNotEqualTo(byte than)
           
 byte awaitSmallerOrEqualThan(byte than)
           
 byte awaitSmallerThan(byte than)
           
 byte dec()
           
 byte dec(byte amount)
           
 boolean equals(java.lang.Object thatObj)
           
 byte get()
           
 int hashCode()
           
 byte inc()
           
 byte inc(byte amount)
           
 byte set(byte 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

TransactionalByte

public TransactionalByte()

TransactionalByte

public TransactionalByte(byte value)
Method Detail

get

public byte get()

await

public void await(byte desired)

awaitLargerThan

public byte awaitLargerThan(byte than)

awaitLargerOrEqualThan

public byte awaitLargerOrEqualThan(byte than)

awaitSmallerThan

public byte awaitSmallerThan(byte than)

awaitSmallerOrEqualThan

public byte awaitSmallerOrEqualThan(byte than)

awaitNotEqualTo

public byte awaitNotEqualTo(byte than)

set

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

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

inc

public byte inc()

inc

public byte inc(byte amount)

dec

public byte dec()

dec

public byte dec(byte amount)

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.