Class CASValue<T>


  • public class CASValue<T>
    extends java.lang.Object
    A value with a CAS identifier.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long cas  
      private T value  
    • Constructor Summary

      Constructors 
      Constructor Description
      CASValue​(long c, T v)
      Construct a new CASValue with the given identifer and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCas()
      Get the CAS identifier.
      T getValue()
      Get the object value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • cas

        private final long cas
      • value

        private final T value
    • Constructor Detail

      • CASValue

        public CASValue​(long c,
                        T v)
        Construct a new CASValue with the given identifer and value.
        Parameters:
        c - the CAS identifier
        v - the value
    • Method Detail

      • getCas

        public long getCas()
        Get the CAS identifier.
      • getValue

        public T getValue()
        Get the object value.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object