Class Pair<A,​B>

  • Type Parameters:
    A - First type of the pair
    B - Second type of the pair

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

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

      • Pair

        public Pair​(A first,
                    B second)
        Parameters:
        first - the first element of the Pair
        second - the second element of the Pair
    • Method Detail

      • getFirst

        public A getFirst()
        Returns:
        the first element of the Pair
      • getSecond

        public B getSecond()
        Returns:
        the second element of the Pair