Class TAtomicReference<V>


  • public class TAtomicReference<V>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private V value  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean compareAndSet​(V expect, V update)  
      V get()  
      V getAndSet​(V aNewValue)  
      void set​(V aValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private V value
    • Constructor Detail

      • TAtomicReference

        public TAtomicReference​(V aValue)
      • TAtomicReference

        public TAtomicReference()
    • Method Detail

      • get

        public final V get()
      • set

        public final void set​(V aValue)
      • getAndSet

        public final V getAndSet​(V aNewValue)
      • compareAndSet

        public boolean compareAndSet​(V expect,
                                     V update)