# Class AtomicBoolean

java.lang.Object
java.util.concurrent.atomic.AtomicBoolean

All Implemented Interfaces:
  `java.io.Serializable`

public class AtomicBoolean extends java.lang.Object implements java.io.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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AtomicBoolean()`
  `AtomicBoolean(boolean initialValue)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final boolean`
  `compareAndSet(boolean expect, boolean update)`
  `final boolean`
  `get()`
  `final boolean`
  `getAndSet(boolean newValue)`
  `final void`
  `lazySet(boolean newValue)`
  `final void`
  `set(boolean newValue)`
  `final boolean`
  `weakCompareAndSet(boolean expect, boolean update)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)