public abstract class Tuples
extends java.lang.Object
implements java.util.function.Function
Collection
of objects, each of which can be of an arbitrary type.Modifier and Type | Method and Description |
---|---|
Tuple2 |
apply(java.lang.Object o) |
static <T1,T2> java.util.function.Function<java.lang.Object[],Tuple2<T1,T2>> |
fn2()
A converting function from Object array to
Tuple2 |
static <T1,T2,T3> java.util.function.Function<java.lang.Object[],Tuple3<T1,T2,T3>> |
fn3()
A converting function from Object array to
Tuple3 |
static <T1,T2,T3,R> |
fn3(java.util.function.Function<Tuple3<T1,T2,T3>,R> delegate)
A converting function from Object array to
Tuple3 to R. |
static <T1,T2,T3,T4> |
fn4()
A converting function from Object array to
Tuple4 |
static <T1,T2,T3,T4,R> |
fn4(java.util.function.Function<Tuple4<T1,T2,T3,T4>,R> delegate)
A converting function from Object array to
Tuple4 to R. |
static <T1,T2,T3,T4,T5> |
fn5()
A converting function from Object array to
Tuple5 |
static <T1,T2,T3,T4,T5,R> |
fn5(java.util.function.Function<Tuple5<T1,T2,T3,T4,T5>,R> delegate)
A converting function from Object array to
Tuple4 to R. |
static <T1,T2,T3,T4,T5,T6> |
fn6()
A converting function from Object array to
Tuple6 |
static <T1,T2,T3,T4,T5,T6,R> |
fn6(java.util.function.Function<Tuple6<T1,T2,T3,T4,T5,T6>,R> delegate)
A converting function from Object array to
Tuple6 to R. |
static <T1,T2,T3,T4,T5,T6,T7> |
fn7()
A converting function from Object array to
Tuple7 |
static <T1,T2,T3,T4,T5,T6,T7,R> |
fn7(java.util.function.Function<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> delegate)
A converting function from Object array to
Tuple7 to R. |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
fn8()
A converting function from Object array to
Tuple8 |
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
fn8(java.util.function.Function<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> delegate)
A converting function from Object array to
Tuple8 |
static java.util.function.Function<java.lang.Object[],Tuples> |
fnAny()
A converting function from Object array to
Tuples |
static <R> java.util.function.Function<java.lang.Object[],R> |
fnAny(java.util.function.Function<Tuples,R> delegate)
A converting function from Object array to
Tuples to R. |
static Tuple2 |
fromArray(java.lang.Object[] list)
Create a
Tuples with the given object. |
static <T1,T2> Tuple2<T1,T2> |
of(T1 t1,
T2 t2)
Create a
Tuple2 with the given objects. |
static <T1,T2,T3> Tuple3<T1,T2,T3> |
of(T1 t1,
T2 t2,
T3 t3)
Create a
Tuple3 with the given objects. |
static <T1,T2,T3,T4> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Create a
Tuple4 with the given objects. |
static <T1,T2,T3,T4,T5> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5)
Create a
Tuple5 with the given objects. |
static <T1,T2,T3,T4,T5,T6> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6)
Create a
Tuple6 with the given objects. |
static <T1,T2,T3,T4,T5,T6,T7> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7)
Create a
Tuple7 with the given objects. |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7,
T8 t8)
Create a
Tuple8 with the given objects. |
public static Tuple2 fromArray(java.lang.Object[] list)
Tuples
with the given object.list
- Build an unbounded tupleTuples
.public static <T1,T2> Tuple2<T1,T2> of(T1 t1, T2 t2)
Tuple2
with the given objects.T1
- The type of the first value.T2
- The type of the second value.t1
- The first value in the tuple.t2
- The second value in the tuple.Tuple2
.public static <T1,T2,T3> Tuple3<T1,T2,T3> of(T1 t1, T2 t2, T3 t3)
Tuple3
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.Tuple3
.public static <T1,T2,T3,T4> Tuple4<T1,T2,T3,T4> of(T1 t1, T2 t2, T3 t3, T4 t4)
Tuple4
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.t4
- The fourth value in the tuple.Tuple4
.public static <T1,T2,T3,T4,T5> Tuple5<T1,T2,T3,T4,T5> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
Tuple5
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.t4
- The fourth value in the tuple.t5
- The fifth value in the tuple.Tuple5
.public static <T1,T2,T3,T4,T5,T6> Tuple6<T1,T2,T3,T4,T5,T6> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
Tuple6
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.t4
- The fourth value in the tuple.t5
- The fifth value in the tuple.t6
- The sixth value in the tuple.Tuple6
.public static <T1,T2,T3,T4,T5,T6,T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
Tuple7
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.t4
- The fourth value in the tuple.t5
- The fifth value in the tuple.t6
- The sixth value in the tuple.t7
- The seventh value in the tuple.Tuple7
.public static <T1,T2,T3,T4,T5,T6,T7,T8> Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
Tuple8
with the given objects.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.T8
- The type of the eighth value.t1
- The first value in the tuple.t2
- The second value in the tuple.t3
- The third value in the tuple.t4
- The fourth value in the tuple.t5
- The fifth value in the tuple.t6
- The sixth value in the tuple.t7
- The seventh value in the tuple.t8
- The eighth value in the tuple.Tuple8
.public static java.util.function.Function<java.lang.Object[],Tuples> fnAny()
Tuples
Tuples
.public static <R> java.util.function.Function<java.lang.Object[],R> fnAny(java.util.function.Function<Tuples,R> delegate)
Tuples
to R.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2> java.util.function.Function<java.lang.Object[],Tuple2<T1,T2>> fn2()
Tuple2
T1
- The type of the first value.T2
- The type of the second value.Tuple2
.public static <T1,T2,T3> java.util.function.Function<java.lang.Object[],Tuple3<T1,T2,T3>> fn3()
Tuple3
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.Tuple3
.public static <T1,T2,T3,R> java.util.function.Function<java.lang.Object[],R> fn3(java.util.function.Function<Tuple3<T1,T2,T3>,R> delegate)
Tuple3
to R.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2,T3,T4> java.util.function.Function<java.lang.Object[],Tuple4<T1,T2,T3,T4>> fn4()
Tuple4
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.Tuple4
.public static <T1,T2,T3,T4,R> java.util.function.Function<java.lang.Object[],R> fn4(java.util.function.Function<Tuple4<T1,T2,T3,T4>,R> delegate)
Tuple4
to R.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2,T3,T4,T5> java.util.function.Function<java.lang.Object[],Tuple5<T1,T2,T3,T4,T5>> fn5()
Tuple5
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.Tuple5
.public static <T1,T2,T3,T4,T5,R> java.util.function.Function<java.lang.Object[],R> fn5(java.util.function.Function<Tuple5<T1,T2,T3,T4,T5>,R> delegate)
Tuple4
to R.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2,T3,T4,T5,T6> java.util.function.Function<java.lang.Object[],Tuple6<T1,T2,T3,T4,T5,T6>> fn6()
Tuple6
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.Tuple6
.public static <T1,T2,T3,T4,T5,T6,R> java.util.function.Function<java.lang.Object[],R> fn6(java.util.function.Function<Tuple6<T1,T2,T3,T4,T5,T6>,R> delegate)
Tuple6
to R.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2,T3,T4,T5,T6,T7> java.util.function.Function<java.lang.Object[],Tuple7<T1,T2,T3,T4,T5,T6,T7>> fn7()
Tuple7
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.Tuple7
.public static <T1,T2,T3,T4,T5,T6,T7,R> java.util.function.Function<java.lang.Object[],R> fn7(java.util.function.Function<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> delegate)
Tuple7
to R.T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2,T3,T4,T5,T6,T7,T8> java.util.function.Function<java.lang.Object[],Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>> fn8()
Tuple8
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.T8
- The type of the eighth value.Tuple8
.public static <T1,T2,T3,T4,T5,T6,T7,T8,R> java.util.function.Function<java.lang.Object[],R> fn8(java.util.function.Function<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> delegate)
Tuple8
T1
- The type of the first value.T2
- The type of the second value.T3
- The type of the third value.T4
- The type of the fourth value.T5
- The type of the fifth value.T6
- The type of the sixth value.T7
- The type of the seventh value.T8
- The type of the eighth value.R
- The type of the return value.delegate
- the function to delegate toTuple8
.public Tuple2 apply(java.lang.Object o)
apply
in interface java.util.function.Function