@Test public void testPairOf() { Pair<String, Integer> pair = Pair.of("brock", 45); test(pair); }
public static <T, U> Pair<T, U> of(T first, U second) { return new Pair<T, U>(first, second); }
Pair implements Tuple, Comparable<Pair<K, V>> { public static <T, U> Pair<T, U> of(T first, U second) { return new Pair<T, U>(first, second); } }
Pair implements Tuple, Comparable<Pair<K, V>> { public static <T, U> Pair<T, U> of(T first, U second) { return new Pair<T, U>(first, second); } Pair(K first, V second); }
Pair implements Tuple, Comparable<Pair<K, V>> { public static <T, U> Pair<T, U> of(T first, U second) { return new Pair<T, U>(first, second); } Pair(K first, V second); static Pair<T, U> of(T first, U second); K first(); V second(); Object get(int index); int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override int compareTo(Pair<K, V> o); }
Pair implements Tuple, Comparable<Pair<K, V>> { public static <T, U> Pair<T, U> of(T first, U second) { return new Pair<T, U>(first, second); } Pair(K first, V second); static Pair<T, U> of(T first, U second); K first(); V second(); Object get(int index); int size(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); @Override int compareTo(Pair<K, V> o);  }