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