@Test public void testPair() { Pair<Integer, String> pair = new Pair<Integer, String>(1, "one"); assertEquals(new Integer(1), pair.getFirst()); assertEquals("one", pair.getSecond()); }
public Pair(F first, S second) { super(); this.first = first; this.second = second; }
Pair { public Pair(F first, S second) { super(); this.first = first; this.second = second; } }
Pair { public Pair(F first, S second) { super(); this.first = first; this.second = second; } Pair(F first, S second); }
Pair { public Pair(F first, S second) { super(); this.first = first; this.second = second; } Pair(F first, S second); F getFirst(); S getSecond(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Pair { public Pair(F first, S second) { super(); this.first = first; this.second = second; } Pair(F first, S second); F getFirst(); S getSecond(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }