Class Pair<F,​S>

    • Field Detail

      • NULL_PAIR

        public static final Pair NULL_PAIR
    • Constructor Detail

      • Pair

        public Pair​(F first,
                    S second)
        Make a new one.
        Parameters:
        first - The first member.
        second - The second member.
    • Method Detail

      • nullPair

        public static final <X,​Y> Pair<X,​Y> nullPair()
      • getFirst

        public final F getFirst()
        Get the first member of the tuple.
        Returns:
        The first member.
      • getSecond

        public final S getSecond()
        Get the second member of the tuple.
        Returns:
        The second member.
      • setFirst

        public final void setFirst​(F first)
      • setSecond

        public final void setSecond​(S second)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object