Class AtomicReference<V>

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

public class AtomicReference<V> extends 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 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)