Class Pair<A,​B>

  • Type Parameters:
    A - type parameter for first element in pair
    B - type parameter for second element in pair
    All Implemented Interfaces:
    java.io.Serializable

    public class Pair<A,​B>
    extends java.lang.Object
    implements java.io.Serializable
    A simple pair.
    See Also:
    Serialized Form
    • Constructor Summary

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

      • Pair

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

      • getFirst

        public A getFirst()
      • setFirst

        public void setFirst​(A first)
      • getSecond

        public B getSecond()
      • setSecond

        public void setSecond​(B second)
      • toString

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