@Test public void testToTriplet() throws Exception { Assert.assertEquals(true, RxTuples.<Integer, Integer, Integer> toTriplet().apply(1, 2, 3) .equals(RES_TRIPLET)); Assert.assertEquals(true, RxTuples.<Integer, Integer, Integer> toTripletFromPair().apply(Pair.with(1, 2), 3) .equals(RES_TRIPLET)); Assert.assertEquals(true, RxTuples.<Integer, Integer, Integer> toTripletFromSingle().apply(1, Pair.with(2, 3)) .equals(RES_TRIPLET)); }
public static <A, B, C> Function3<A, B, C, Triplet<A, B, C>> toTriplet() { return new Function3<A, B, C, Triplet<A, B, C>>() { @Override public Triplet<A, B, C> apply(A a, B b, C c) { return Triplet.with(a, b, c); } }; }
RxTuples { public static <A, B, C> Function3<A, B, C, Triplet<A, B, C>> toTriplet() { return new Function3<A, B, C, Triplet<A, B, C>>() { @Override public Triplet<A, B, C> apply(A a, B b, C c) { return Triplet.with(a, b, c); } }; } }
RxTuples { public static <A, B, C> Function3<A, B, C, Triplet<A, B, C>> toTriplet() { return new Function3<A, B, C, Triplet<A, B, C>>() { @Override public Triplet<A, B, C> apply(A a, B b, C c) { return Triplet.with(a, b, c); } }; } private  RxTuples(); }
RxTuples { public static <A, B, C> Function3<A, B, C, Triplet<A, B, C>> toTriplet() { return new Function3<A, B, C, Triplet<A, B, C>>() { @Override public Triplet<A, B, C> apply(A a, B b, C c) { return Triplet.with(a, b, c); } }; } private  RxTuples(); static BiFunction<T, U, Pair<T, U>> toPair(); static Function3<A, B, C, Triplet<A, B, C>> toTriplet(); static io.reactivex.functions.BiFunction<T, Pair<A, B>, Triplet<T, A, B>> toTripletFromSingle(); static BiFunction<Pair<A, B>, T, Triplet<A, B, T>> toTripletFromPair(); static Function4<A, B, C, D, Quartet<A, B, C, D>> toQuartet(); static BiFunction<T, Triplet<A, B, C>, Quartet<T, A, B, C>> toQuartetFromSingle(); static BiFunction<Pair<A, B>, Pair<C, D>, Quartet<A, B, C, D>> toQuartetFromPair(); static BiFunction<Triplet<A, B, C>, T, Quartet<A, B, C, T>> toQuartetFromTriplet(); static Function5<A, B, C, D, E, Quintet<A, B, C, D, E>> toQuintet(); static BiFunction<T, Quartet<A, B, C, D>, Quintet<T, A, B, C, D>> toQuintetFromSingle(); static BiFunction<Pair<A, B>, Triplet<C, D, E>, Quintet<A, B, C, D, E>> toQuintetFromPair(); static BiFunction<Triplet<A, B, C>, Pair<D, E>, Quintet<A, B, C, D, E>> toQuintetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, T, Quintet<A, B, C, D, T>> toQuintetFromQuartet(); static Function6<A, B, C, D, E, F, Sextet<A, B, C, D, E, F>> toSextet(); static BiFunction<T, Quintet<A, B, C, D, E>, Sextet<T, A, B, C, D, E>> toSextetFromSingle(); static BiFunction<Pair<A, B>, Quartet<C, D, E, F>, Sextet<A, B, C, D, E, F>> toSextetFromPair(); static BiFunction<Triplet<A, B, C>, Triplet<D, E, F>, Sextet<A, B, C, D, E, F>> toSextetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Pair<E, F>, Sextet<A, B, C, D, E, F>> toSextetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, T, Sextet<A, B, C, D, E, T>> toSextetFromQuintet(); static Function7<A, B, C, D, E, F, G, Septet<A, B, C, D, E, F, G>> toSeptet(); static BiFunction<T, Sextet<A, B, C, D, E, F>, Septet<T, A, B, C, D, E, F>> toSeptetFromSingle(); static BiFunction<Pair<A, B>, Quintet<C, D, E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromPair(); static BiFunction<Triplet<A, B, C>, Quartet<D, E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Triplet<E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, Pair<F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromQuintet(); static BiFunction<Sextet<A, B, C, D, E, F>, T, Septet<A, B, C, D, E, F, T>> toSeptetFromSextet(); static Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet(); static BiFunction<T, Septet<A, B, C, D, E, F, G>, Octet<T, A, B, C, D, E, F, G>> toOctetFromSingle(); static BiFunction<Pair<A, B>, Sextet<C, D, E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromPair(); static BiFunction<Triplet<A, B, C>, Quintet<D, E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Quartet<E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, Triplet<F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromQuintet(); static BiFunction<Sextet<A, B, C, D, E, F>, Pair<G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromSextet(); static BiFunction<Septet<A, B, C, D, E, F, G>, T, Octet<A, B, C, D, E, F, G, T>> toOctetFromSeptet(); }
RxTuples { public static <A, B, C> Function3<A, B, C, Triplet<A, B, C>> toTriplet() { return new Function3<A, B, C, Triplet<A, B, C>>() { @Override public Triplet<A, B, C> apply(A a, B b, C c) { return Triplet.with(a, b, c); } }; } private  RxTuples(); static BiFunction<T, U, Pair<T, U>> toPair(); static Function3<A, B, C, Triplet<A, B, C>> toTriplet(); static io.reactivex.functions.BiFunction<T, Pair<A, B>, Triplet<T, A, B>> toTripletFromSingle(); static BiFunction<Pair<A, B>, T, Triplet<A, B, T>> toTripletFromPair(); static Function4<A, B, C, D, Quartet<A, B, C, D>> toQuartet(); static BiFunction<T, Triplet<A, B, C>, Quartet<T, A, B, C>> toQuartetFromSingle(); static BiFunction<Pair<A, B>, Pair<C, D>, Quartet<A, B, C, D>> toQuartetFromPair(); static BiFunction<Triplet<A, B, C>, T, Quartet<A, B, C, T>> toQuartetFromTriplet(); static Function5<A, B, C, D, E, Quintet<A, B, C, D, E>> toQuintet(); static BiFunction<T, Quartet<A, B, C, D>, Quintet<T, A, B, C, D>> toQuintetFromSingle(); static BiFunction<Pair<A, B>, Triplet<C, D, E>, Quintet<A, B, C, D, E>> toQuintetFromPair(); static BiFunction<Triplet<A, B, C>, Pair<D, E>, Quintet<A, B, C, D, E>> toQuintetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, T, Quintet<A, B, C, D, T>> toQuintetFromQuartet(); static Function6<A, B, C, D, E, F, Sextet<A, B, C, D, E, F>> toSextet(); static BiFunction<T, Quintet<A, B, C, D, E>, Sextet<T, A, B, C, D, E>> toSextetFromSingle(); static BiFunction<Pair<A, B>, Quartet<C, D, E, F>, Sextet<A, B, C, D, E, F>> toSextetFromPair(); static BiFunction<Triplet<A, B, C>, Triplet<D, E, F>, Sextet<A, B, C, D, E, F>> toSextetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Pair<E, F>, Sextet<A, B, C, D, E, F>> toSextetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, T, Sextet<A, B, C, D, E, T>> toSextetFromQuintet(); static Function7<A, B, C, D, E, F, G, Septet<A, B, C, D, E, F, G>> toSeptet(); static BiFunction<T, Sextet<A, B, C, D, E, F>, Septet<T, A, B, C, D, E, F>> toSeptetFromSingle(); static BiFunction<Pair<A, B>, Quintet<C, D, E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromPair(); static BiFunction<Triplet<A, B, C>, Quartet<D, E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Triplet<E, F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, Pair<F, G>, Septet<A, B, C, D, E, F, G>> toSeptetFromQuintet(); static BiFunction<Sextet<A, B, C, D, E, F>, T, Septet<A, B, C, D, E, F, T>> toSeptetFromSextet(); static Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet(); static BiFunction<T, Septet<A, B, C, D, E, F, G>, Octet<T, A, B, C, D, E, F, G>> toOctetFromSingle(); static BiFunction<Pair<A, B>, Sextet<C, D, E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromPair(); static BiFunction<Triplet<A, B, C>, Quintet<D, E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromTriplet(); static BiFunction<Quartet<A, B, C, D>, Quartet<E, F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromQuartet(); static BiFunction<Quintet<A, B, C, D, E>, Triplet<F, G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromQuintet(); static BiFunction<Sextet<A, B, C, D, E, F>, Pair<G, H>, Octet<A, B, C, D, E, F, G, H>> toOctetFromSextet(); static BiFunction<Septet<A, B, C, D, E, F, G>, T, Octet<A, B, C, D, E, F, G, T>> toOctetFromSeptet();  }