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