Class Pair<A,B>

java.lang.Object
org.jparsec.functors.Pair<A,B>
Direct Known Subclasses:
Tuple3

@Deprecated public class Pair<A,B> extends 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
    final A
    Deprecated.
     
    final B
    Deprecated.
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    (package private) boolean
    equals(Pair<?,?> other)
    Deprecated.
     
    int
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • a

      public final A a
      Deprecated.
    • b

      public final B b
      Deprecated.
  • Constructor Details

    • Pair

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

    • equals

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

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

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

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