Class Pair<A,​B>


  • public class Pair<A,​B>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(A first, B second)  
    • Constructor Detail

      • Pair

        public Pair​(A first,
                    B second)
    • Method Detail

      • first

        public A first()
      • second

        public B second()
      • 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
      • create

        public static <A,​B> Pair<A,​B> create​(A first,
                                                         B second)
      • of

        public static <A,​B> Pair<A,​B> of​(A a,
                                                     B b)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object