AtomicFloat
Complete API reference for AtomicFloat, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Atomic
Component: no
public class AtomicFloat extends Number
Constructors
| Signature | Description |
|---|---|
AtomicFloat() | Creates a new instance of AtomicFloat. |
AtomicFloat(float) | Creates a new instance of AtomicFloat. |
Methods
| Signature | Returns | Description |
|---|---|---|
compareAndSet(float, float) | boolean | Compares this instance with another for equality/order. |
set(float) | void | Sets or updates the the value. |
get() | float | Returns the current value. |
floatValue() | float | Executes floatValue and returns after the underlying engine call finishes. |
getAndSet(float) | float | Returns the current and set. |
weakCompareAndSet(float, float) | boolean | Performs the weakCompareAndSet operation using the provided parameters (expect, update). |
doubleValue() | double | Executes doubleValue and returns after the underlying engine call finishes. |
intValue() | int | Executes intValue and returns after the underlying engine call finishes. |
longValue() | long | Executes longValue and returns after the underlying engine call finishes. |
toString() | String | Returns the string representation. |