Class Sequence

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Sequence>

    public class Sequence
    extends java.lang.Object
    implements java.lang.Comparable<Sequence>, java.io.Serializable
    A wrapper for two numbers. Where one is treated as 'high order' and the other as 'low order' to break ties when the former is the same.
    See Also:
    Serialized Form
    • Field Detail

      • MAX_VALUE

        public static final Sequence MAX_VALUE
      • MIN_VALUE

        public static final Sequence MIN_VALUE
    • Method Detail

      • compareTo

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

        public static Sequence create​(long highOrder,
                                      long lowOrder)
      • getHighOrder

        public long getHighOrder()
      • getLowOrder

        public long getLowOrder()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

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