Class Pair<S,​T>


  • public final class Pair<S,​T>
    extends java.lang.Object
    Pair implementation, unlike Tuple this implements hashcode and equals on both parts of this pair.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(S first, T second)  
    • Constructor Detail

      • Pair

        public Pair​(S first,
                    T second)
    • Method Detail

      • getFirst

        public S getFirst()
      • getSecond

        public T getSecond()
      • 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