AtomicReference
Provides atomic operations for the reference type.
Atomically updates the current value with the results of applying the given function
to the current and given values, returning the updated value.
Compares two values for equality and, if they are equal,
replaces the stored value.
Atomically updates the current value with the results of applying the given function
to the current and given values, returning the original value.
Atomically updates the stored value with the results
of applying the given function, returning the original value.
Atomically updates the stored value with the results
of applying the given function, returning the updated value.