Class ObjLongPair<A>

  • All Implemented Interfaces:
    java.io.Serializable

    public class ObjLongPair<A>
    extends java.lang.Object
    implements java.io.Serializable
    A Pair is a holder for 1 object and 'a' being greater or equal than 0.

    This is a utility class.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long NIL  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      A getA()  
      long getB()  
      int hashCode()  
      void setA​(A a)  
      void setB​(long b)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ObjLongPair

        public ObjLongPair​(A a,
                           long b)
      • ObjLongPair

        public ObjLongPair​(A a)
    • Method Detail

      • hashCode

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

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

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

        public void setA​(A a)
      • getA

        public A getA()
      • setB

        public void setB​(long b)
      • getB

        public long getB()