Class Pair<A,​B>

  • Direct Known Subclasses:
    Tuple3

    @Deprecated
    public class Pair<A,​B>
    extends java.lang.Object
    Deprecated.
    Prefer to using a lambda expression to convert to your own type.
    Immutable data holder for 2 values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      A a
      Deprecated.
       
      B b
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      Pair​(A a, B b)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Deprecated.
       
      (package private) boolean equals​(Pair<?,​?> other)
      Deprecated.
       
      int hashCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • a

        public final A a
        Deprecated.
      • b

        public final B b
        Deprecated.
    • Constructor Detail

      • Pair

        public Pair​(A a,
                    B b)
        Deprecated.
    • Method Detail

      • equals

        boolean equals​(Pair<?,​?> other)
        Deprecated.
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • toString

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