Class Timestamped<T>



  • public final class Timestamped<T>
    extends Object
    Composite class that takes a value and a timestamp and wraps them.
    • Constructor Detail

      • Timestamped

        public Timestamped(long timestampMillis,
                           T value)
    • Method Detail

      • getTimestampMillis

        public long getTimestampMillis()
        Returns the timestamp, expressed in milliseconds.
        Returns:
        timestamp in milliseconds
      • getValue

        public T getValue()
        Returns the value embedded in the Timestamped object.
        Returns:
        the value
      • equals

        public boolean equals(Object obj)
      • hashCode

        public int hashCode()
      • toString

        public String toString()