Skip to main content

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

SignatureDescription
AtomicFloat()Creates a new instance of AtomicFloat.
AtomicFloat(float)Creates a new instance of AtomicFloat.

Methods

SignatureReturnsDescription
compareAndSet(float, float)booleanCompares this instance with another for equality/order.
set(float)voidSets or updates the the value.
get()floatReturns the current value.
floatValue()floatExecutes floatValue and returns after the underlying engine call finishes.
getAndSet(float)floatReturns the current and set.
weakCompareAndSet(float, float)booleanPerforms the weakCompareAndSet operation using the provided parameters (expect, update).
doubleValue()doubleExecutes doubleValue and returns after the underlying engine call finishes.
intValue()intExecutes intValue and returns after the underlying engine call finishes.
longValue()longExecutes longValue and returns after the underlying engine call finishes.
toString()StringReturns the string representation.