Home | History | Annotate | Download | only in util

Lines Matching refs:Pair

26 public class Pair<F, S> {
31 * Constructor for a Pair.
33 * @param first the first object in the Pair
34 * @param second the second 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
69 * Convenience method for creating an appropriately typed pair.
70 * @param a the first object in the Pair
71 * @param b the second object in the pair
72 * @return a Pair that is templatized with the types of a and b
74 public static <A, B> Pair <A, B> create(A a, B b) {
75 return new Pair<A, B>(a, b);