Class Pair<First,​Second>

    • Constructor Detail

      • Pair

        public Pair()
    • Method Detail

      • create

        public static <F,​S> Pair<F,​S> create​(F first,
                                                         S second)
        Create a new pair with the given values
      • createOnlyFirst

        public static <F,​S> Pair<F,​S> createOnlyFirst​(F first)
        Create a new pair with the given first value and null as second
      • createOnlySecond

        public static <F,​S> Pair<F,​S> createOnlySecond​(S second)
        Create a new pair with null as first and the given second value
      • ofNulls

        public static <F,​S> Pair<F,​S> ofNulls()
        Returns the pair <null, null>.
      • getFirst

        public First getFirst()
      • getSecond

        public Second getSecond()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setFirst

        public void setFirst​(First first)
      • setSecond

        public void setSecond​(Second second)