class AtomicFloat
extends java.lang.Number
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicInteger |
bits |
Constructor and Description |
---|
AtomicFloat() |
AtomicFloat(float initialValue) |
Modifier and Type | Method and 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) |
public AtomicFloat()
public AtomicFloat(float initialValue)
public final boolean compareAndSet(float expect, float update)
public final void set(float newValue)
public final float get()
public float floatValue()
floatValue
in class java.lang.Number
public final float getAndSet(float newValue)
public final boolean weakCompareAndSet(float expect, float update)
public double doubleValue()
doubleValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number