@Test public void assertNullValues() { assertThat(Tuple3.of(null, 1, 2)).containsExactly(null, 1, 2); assertThat(Tuple3.of(1, null, 2)).containsExactly(1, null, 2); assertThat(Tuple3.of(1, 2, null)).containsExactly(1, 2, null); assertThat(Tuple3.of(null, null, null)).containsExactly(null, null, null); }
public static <T1, T2, T3> Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c) { return new Tuple3<>(a, b, c); }
Tuple3 extends Tuple2<T1, T2> implements Tuple { public static <T1, T2, T3> Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c) { return new Tuple3<>(a, b, c); } }
Tuple3 extends Tuple2<T1, T2> implements Tuple { public static <T1, T2, T3> Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c) { return new Tuple3<>(a, b, c); } Tuple3(T1 a, T2 b, T3 c); }
Tuple3 extends Tuple2<T1, T2> implements Tuple { public static <T1, T2, T3> Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c) { return new Tuple3<>(a, b, c); } Tuple3(T1 a, T2 b, T3 c); static Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c); T3 getItem3(); @Override Object nth(int index); @Override Tuple3<T, T2, T3> mapItem1(Function<T1, T> mapper); @Override Tuple3<T1, T, T3> mapItem2(Function<T2, T> mapper); Tuple3<T1, T2, T> mapItem3(Function<T3, T> mapper); @Override List<Object> asList(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
Tuple3 extends Tuple2<T1, T2> implements Tuple { public static <T1, T2, T3> Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c) { return new Tuple3<>(a, b, c); } Tuple3(T1 a, T2 b, T3 c); static Tuple3<T1, T2, T3> of(T1 a, T2 b, T3 c); T3 getItem3(); @Override Object nth(int index); @Override Tuple3<T, T2, T3> mapItem1(Function<T1, T> mapper); @Override Tuple3<T1, T, T3> mapItem2(Function<T2, T> mapper); Tuple3<T1, T2, T> mapItem3(Function<T3, T> mapper); @Override List<Object> asList(); @Override int size(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }