Class Pair<E1,​E2>


  • public class Pair<E1,​E2>
    extends java.lang.Object
    An immmutable pair of elements.
    Author:
    Peter Niederwieser
    • Method Detail

      • first

        public E1 first()
      • second

        public E2 second()
      • equals

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

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

        public static <E1,​E2> Pair<E1,​E2> of​(E1 first,
                                                         E2 second)