@Test public void testToOctet() throws Exception { Assert.assertEquals(true, RxTuples .<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctet() .apply(1, 2, 3, 4, 5, 6, 7, 8).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromSeptet() .apply(RES_SEPTET, 8).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromSingle() .apply(1, Septet.with(2, 3, 4, 5, 6, 7, 8)).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromSextet() .apply(Sextet.with(1, 2, 3, 4, 5, 6), Pair.with(7, 8)).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromPair() .apply(Pair.with(1, 2), Sextet.with(3, 4, 5, 6, 7, 8)).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromQuintet() .apply(Quintet.with(1, 2, 3, 4, 5), Triplet.with(6, 7, 8)).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromTriplet() .apply(Triplet.with(1, 2, 3), Quintet.with(4, 5, 6, 7, 8)).equals(RES_OCTET)); Assert.assertEquals( true, RxTuples.<Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer> toOctetFromQuartet() .apply(Quartet.with(1, 2, 3, 4), Quartet.with(5, 6, 7, 8)).equals(RES_OCTET)); }
public static <A, B, C, D, E, F, G, H> Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet() { return new Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>>() { @Override public Octet<A, B, C, D, E, F, G, H> apply(A a, B b, C c, D d, E e, F f, G g, H h) { return Octet.with(a, b, c, d, e, f, g, h); } }; }
RxTuples { public static <A, B, C, D, E, F, G, H> Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet() { return new Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>>() { @Override public Octet<A, B, C, D, E, F, G, H> apply(A a, B b, C c, D d, E e, F f, G g, H h) { return Octet.with(a, b, c, d, e, f, g, h); } }; } }
RxTuples { public static <A, B, C, D, E, F, G, H> Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet() { return new Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>>() { @Override public Octet<A, B, C, D, E, F, G, H> apply(A a, B b, C c, D d, E e, F f, G g, H h) { return Octet.with(a, b, c, d, e, f, g, h); } }; } private  RxTuples(); }
RxTuples { public static <A, B, C, D, E, F, G, H> Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet() { return new Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>>() { @Override public Octet<A, B, C, D, E, F, G, H> apply(A a, B b, C c, D d, E e, F f, G g, H h) { return Octet.with(a, b, c, d, e, f, g, h); } }; } 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, D, E, F, G, H> Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>> toOctet() { return new Function8<A, B, C, D, E, F, G, H, Octet<A, B, C, D, E, F, G, H>>() { @Override public Octet<A, B, C, D, E, F, G, H> apply(A a, B b, C c, D d, E e, F f, G g, H h) { return Octet.with(a, b, c, d, e, f, g, h); } }; } 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();  }