Class AtomicBoolean
java.lang.Object
java.util.concurrent.atomic.AtomicBoolean
- All Implemented Interfaces:
Serializable
CLDC11 subset stub. Compile-time visible only; the actual runtime
implementation comes from the platform (the Android JDK on Android,
vm/JavaAPI on ParparVM, the host JDK in the JavaSE simulator).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleancompareAndSet(boolean expect, boolean update) final booleanget()final booleangetAndSet(boolean newValue) final voidlazySet(boolean newValue) final voidset(boolean newValue) final booleanweakCompareAndSet(boolean expect, boolean update)
-
Constructor Details
-
AtomicBoolean
public AtomicBoolean(boolean initialValue) -
AtomicBoolean
public AtomicBoolean()
-
-
Method Details
-
get
public final boolean get() -
set
public final void set(boolean newValue) -
lazySet
public final void lazySet(boolean newValue) -
getAndSet
public final boolean getAndSet(boolean newValue) -
compareAndSet
public final boolean compareAndSet(boolean expect, boolean update) -
weakCompareAndSet
public final boolean weakCompareAndSet(boolean expect, boolean update)
-