Tuple3 { public static <A, B, C> Tuple3<A, B, C> of(A a, B b, C c) { return new Tuple3<>(a, b, c); } private  Tuple3(A _1, B _2, C _3); static Tuple3<A, B, C> of(A a, B b, C c); Tuple4<T, A, B, C> prepend(T t); Tuple4<A, B, C, T> extend(Function3<A, B, C, T> mapping); Tuple3<A1, B1, C1> map(Function<A,A1> fa, Function<B,B1> fb, Function<C,C1> fc ); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); final A _1; final B _2; final C _3; }
@Test public void shouldNotBeEqualToUnrelatedClass() { assertThat(Tuple3.of(1, 2, 3)).isNotEqualTo(""); }