org.multiverse.transactional.primitives
Class TransactionalFloat
java.lang.Object
org.multiverse.transactional.primitives.TransactionalFloat
public class TransactionalFloat
- extends java.lang.Object
A reference for a primitive float.
- Author:
- Peter Veentjer.
|
Method Summary |
void |
await(char desired)
|
float |
dec()
|
float |
dec(float amount)
|
boolean |
equals(java.lang.Object thatobj)
|
float |
get()
|
int |
hashCode()
|
float |
inc()
|
float |
inc(float 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 |
TransactionalFloat
public TransactionalFloat()
TransactionalFloat
public TransactionalFloat(float value)
get
public float get()
await
public void await(char desired)
set
public float set(float newValue)
- Sets the new value and returns the old value.
- Parameters:
newValue - the new value.
- Returns:
- the previous value.
inc
public float inc()
inc
public float inc(float amount)
dec
public float dec()
dec
public float dec(float amount)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object thatobj)
- Overrides:
equals in class java.lang.Object
Copyright © 2008-2010 Multiverse. All Rights Reserved.