Class Pair<F,​S>

  • Type Parameters:
    F - First type.
    S - Second type.

    public class Pair<F,​S>
    extends java.lang.Object
    Container to ease passing around a tuple of two objects.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      F first  
      S second  
    • Constructor Summary

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

      • first

        public final F first
      • second

        public final S second
    • Constructor Detail

      • Pair

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

      • 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
      • create

        public static <A,​B> Pair<A,​B> create​(A a,
                                                         B b)