Class Pair<T1,​T2>

  • Type Parameters:
    T1 -
    T2 -

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

      • Pair

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

      • getFirst

        public T1 getFirst()
      • getSecond

        public T2 getSecond()
      • hashCode

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

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