@Test public void testToString() { assertThat(somePair.toString()).contains("item1=1", "item2=3"); }
@Override public String toString() { return "Tuple{item1=" + item1 + ", item2=" + item2 + '}'; }
Tuple2 implements Tuple { @Override public String toString() { return "Tuple{item1=" + item1 + ", item2=" + item2 + '}'; } }
Tuple2 implements Tuple { @Override public String toString() { return "Tuple{item1=" + item1 + ", item2=" + item2 + '}'; } protected  Tuple2(L left, R right); }
Tuple2 implements Tuple { @Override public String toString() { return "Tuple{item1=" + item1 + ", item2=" + item2 + '}'; } protected  Tuple2(L left, R right); static Tuple2<L, R> of(L l, R r); L getItem1(); R getItem2(); Tuple2<T, R> mapItem1(Function<L, T> mapper); Tuple2<L, T> mapItem2(Function<R, T> mapper); @Override Object nth(int index); @Override List<Object> asList(); @Override boolean equals(Object o); @Override int hashCode(); int size(); @Override String toString(); }
Tuple2 implements Tuple { @Override public String toString() { return "Tuple{item1=" + item1 + ", item2=" + item2 + '}'; } protected  Tuple2(L left, R right); static Tuple2<L, R> of(L l, R r); L getItem1(); R getItem2(); Tuple2<T, R> mapItem1(Function<L, T> mapper); Tuple2<L, T> mapItem2(Function<R, T> mapper); @Override Object nth(int index); @Override List<Object> asList(); @Override boolean equals(Object o); @Override int hashCode(); int size(); @Override String toString();  }