Class Stamped<V>

  • All Implemented Interfaces:
    java.lang.Comparable
    Direct Known Subclasses:
    PunctuationSchedule, StampedRecord

    public class Stamped<V>
    extends java.lang.Object
    implements java.lang.Comparable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long timestamp  
      V value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Stamped​(V value, long timestamp)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object other)  
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • value

        public final V value
      • timestamp

        public final long timestamp
    • Constructor Detail

      • Stamped

        public Stamped​(V value,
                       long timestamp)
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object other)
        Specified by:
        compareTo in interface java.lang.Comparable<V>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object