Class Pair<T1,​T2>

  • Type Parameters:
    T1 -
    T2 -

    public class Pair<T1,​T2>
    extends java.lang.Object
    A pair of objects.
    • Constructor Detail

      • Pair

        public Pair​(T1 obj1,
                    T2 obj2)
    • Method Detail

      • getFirst

        public T1 getFirst()
      • getSecond

        public T2 getSecond()
      • equals

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

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

        public static <T1,​T2> Pair<T1,​T2> make​(T1 obj1,
                                                           T2 obj2)