# Class AtomicReference<V>

java.lang.Object
java.util.concurrent.atomic.AtomicReference<V>

public class AtomicReference<V> extends java.lang.Object
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).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AtomicReference()`
  `AtomicReference(V initialValue)`

- ## Method Summary

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

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

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

- ## Constructor Details

  - ### AtomicReference

    public AtomicReference()

  - ### AtomicReference

    public AtomicReference(V initialValue)

- ## Method Details

  - ### compareAndSet

    public final boolean compareAndSet(V expect, V update)

  - ### get

    public V get()

  - ### getAndSet

    public final V getAndSet(V newValue)

  - ### lazySet

    public final void lazySet(V newValue)

  - ### weakCompareAndSet

    public final boolean weakCompareAndSet(V expect, V update)

  - ### set

    public final void set(V newValue)