Class Pair<F,​S>

  • Type Parameters:
    F - type of first item in the pair
    S - type of second item in the pair
    All Implemented Interfaces:
    Serializable

    public class Pair<F,​S>
    extends Object
    implements Serializable
    A simple class to contain a pair of items.
    See Also:
    Serialized Form
    • Constructor Detail

      • Pair

        public Pair()
      • Pair

        public Pair​(F first)
      • Pair

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

      • getFirst

        public F getFirst()
      • setFirst

        public void setFirst​(F first)
      • getSecond

        public S getSecond()
      • setSecond

        public void setSecond​(S second)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object