@Test public void testToString() { final IntPair<String> p1 = new IntPair<String>(1, "first"); assertEquals("IntPair[1, first]", p1.toString()); }
@Override public String toString() { return "IntPair[" + first + ", " + second + ']'; }
IntPair { @Override public String toString() { return "IntPair[" + first + ", " + second + ']'; } }
IntPair { @Override public String toString() { return "IntPair[" + first + ", " + second + ']'; } IntPair(int first, T second); }
IntPair { @Override public String toString() { return "IntPair[" + first + ", " + second + ']'; } IntPair(int first, T second); int getFirst(); T getSecond(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
IntPair { @Override public String toString() { return "IntPair[" + first + ", " + second + ']'; } IntPair(int first, T second); int getFirst(); T getSecond(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }