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