Code example for AtomicReference

Methods: compareAndSet, getAndSet