public class AtomicReference<V>

  1. Object
  2. AtomicReference
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).

Constructors

public AtomicReference()
public AtomicReference(V initialValue)

Methods

public final boolean compareAndSet(V expect, V update)
public V get()
public final V getAndSet(V newValue)
public final void lazySet(V newValue)
public final boolean weakCompareAndSet(V expect, V update)
public final void set(V newValue)

Inherited methods

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)