Module java.base
Package java.util.concurrent.atomic

# Class AtomicReference

=
public class AtomicReference<V>
extends java.lang.Object
implements java.io.Serializable

## Constructors

- =
  public AtomicReference()
- =
  public AtomicReference(V arg0)

## Methods

- =
  public final V accumulateAndGet(V arg0, java.util.function.BinaryOperator<V> arg1)
- =
  public final V compareAndExchange(V arg0, V arg1)
- =
  public final V compareAndExchangeAcquire(V arg0, V arg1)
- =
  public final V compareAndExchangeRelease(V arg0, V arg1)
- =
  public final boolean compareAndSet(V arg0, V arg1)
- =
  public final V get()
- =
  public final V getAcquire()
- =
  public final V getAndAccumulate(V arg0, java.util.function.BinaryOperator<V> arg1)
- =
  public final V getAndSet(V arg0)
- =
  public final V getAndUpdate(java.util.function.UnaryOperator<V> arg0)
- =
  public final V getOpaque()
- =
  public final V getPlain()
- =
  public final void lazySet(V arg0)
- =
  public final void set(V arg0)
- =
  public final void setOpaque(V arg0)
- =
  public final void setPlain(V arg0)
- =
  public final void setRelease(V arg0)
- =
  public java.lang.String toString()
- =
  public final V updateAndGet(java.util.function.UnaryOperator<V> arg0)
- =
  @Deprecated(since="9")
  public final boolean weakCompareAndSet(V arg0, V arg1)
- =
  public final boolean weakCompareAndSetAcquire(V arg0, V arg1)
- =
  public final boolean weakCompareAndSetPlain(V arg0, V arg1)
- =
  public final boolean weakCompareAndSetRelease(V arg0, V arg1)
- =
  public final boolean weakCompareAndSetVolatile(V arg0, V arg1)

## Serialized Form

=

### serialVersionUID

=-1848883965231344442

### Serialized Fields

- =
  V value

## Summary

No differences.