Class LogicalTimestamp

  • All Implemented Interfaces:
    java.lang.Comparable<Timestamp>, Timestamp

    public class LogicalTimestamp
    extends java.lang.Object
    implements Timestamp
    Timestamp based on logical sequence value.

    LogicalTimestamps are ordered by their sequence values.

    • Constructor Detail

      • LogicalTimestamp

        public LogicalTimestamp​(long value)
    • Method Detail

      • compareTo

        public int compareTo​(Timestamp o)
        Specified by:
        compareTo in interface java.lang.Comparable<Timestamp>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Timestamp
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface Timestamp
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public long value()
        Returns the sequence value.
        Returns:
        sequence value