Class AtomicFloat
- java.lang.Object
-
- java.lang.Number
-
- com.actelion.research.util.concurrent.AtomicFloat
-
- All Implemented Interfaces:
java.io.Serializable
public class AtomicFloat extends java.lang.Number
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AtomicFloat()
AtomicFloat(float initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compareAndSet(float expect, float update)
double
doubleValue()
float
floatValue()
float
get()
float
getAndSet(float newValue)
int
intValue()
long
longValue()
void
set(float newValue)
boolean
weakCompareAndSet(float expect, float update)
-
-
-
Method Detail
-
compareAndSet
public final boolean compareAndSet(float expect, float update)
-
set
public final void set(float newValue)
-
get
public final float get()
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
getAndSet
public final float getAndSet(float newValue)
-
weakCompareAndSet
public final boolean weakCompareAndSet(float expect, float update)
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
-