Lines Matching refs:Pair
26 public class Pair<F, S> {
31 * Constructor for a Pair.
33 * @param first the first object in the Pair
36 public Pair(F first, S second) {
45 * @param o the {@link Pair} to which this one is to be checked for equality
46 * @return true if the underlying objects of the Pair are both considered
51 if (!(o instanceof Pair)) {
54 Pair<?, ?> p = (Pair<?, ?>) o;
61 * @return a hashcode of the Pair
70 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}";
75 * @param a the first object in the Pair
77 * @return a Pair that is templatized with the types of a and b
79 public static <A, B> Pair <A, B> create(A a, B b) {
80 return new Pair<A, B>(a, b);