@Test public void stringifying() { assertEquals("[1 = 2]", new Pair<>(1, 2).toString()); }
@Override public String toString() { return String.format("[%s = %s]", first, second); }
Pair { @Override public String toString() { return String.format("[%s = %s]", first, second); } }
Pair { @Override public String toString() { return String.format("[%s = %s]", first, second); } Pair(F first, S second); }
Pair { @Override public String toString() { return String.format("[%s = %s]", first, second); } Pair(F first, S second); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
Pair { @Override public String toString() { return String.format("[%s = %s]", first, second); } Pair(F first, S second); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); final F first; final S second; }