|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.transactional.refs.ByteRef
public class ByteRef
A Ref for storing a byte.
| Constructor Summary | |
|---|---|
ByteRef()
|
|
ByteRef(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()
Decreases the value by one. |
byte |
dec(byte amount)
Decreases the value with the given amount. |
boolean |
equals(java.lang.Object thatObj)
|
byte |
get()
|
int |
hashCode()
|
byte |
inc()
Increases the value by one. |
byte |
inc(byte amount)
Increases the value with the given 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 |
|---|
public ByteRef()
public ByteRef(byte value)
| Method Detail |
|---|
public final byte get()
public final void await(byte desired)
public final byte awaitLargerThan(byte than)
public final byte awaitLargerOrEqualThan(byte than)
public final byte awaitSmallerThan(byte than)
public final byte awaitSmallerOrEqualThan(byte than)
public final byte awaitNotEqualTo(byte than)
public final byte set(byte newValue)
newValue - the new value.
public final byte inc()
public final byte inc(byte amount)
amount - the amount to increae the value with.
public final byte dec()
public final byte dec(byte amount)
amount - the amount to decrease the value with.
public final java.lang.String toString()
toString in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object thatObj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||