Class Pair<T,​U>


  • public class Pair<T,​U>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T t  
      U u
      updatable but don't update if used as key in hashtable
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(T t, U u)  
    • Method Summary

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

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

      • t

        public final T t
      • u

        public U u
        updatable but don't update if used as key in hashtable
    • Constructor Detail

      • Pair

        public Pair​(T t,
                    U u)
    • Method Detail

      • hashCode

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

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

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