org.multiverse.transactional.primitives
Class TransactionalByte
java.lang.Object
org.multiverse.transactional.primitives.TransactionalByte
public final class TransactionalByte
- extends Object
A reference for a primitive byte.
- Author:
- Peter Veentjer
TransactionalByte
public TransactionalByte()
TransactionalByte
public TransactionalByte(byte value)
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 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.