Package jebl.util

Class HashPair<T>


  • public class HashPair<T>
    extends java.lang.Object
    A pair suitable for use in a HashMap.
    Version:
    $Id: HashPair.java 956 2008-11-30 01:18:20Z rambaut $
    Author:
    Joseph Heled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T first  
      T second  
    • Constructor Summary

      Constructors 
      Constructor Description
      HashPair​(T a, T b)  
    • Method Summary

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

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • first

        public final T first
      • second

        public final T second
    • Constructor Detail

      • HashPair

        public HashPair​(T a,
                        T b)
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object x)
        Overrides:
        equals in class java.lang.Object