public abstract class Tuples extends Object implements Function
Collection
of objects, each of which can be of an arbitrary type.Modifier and Type | Method and Description |
---|---|
Tuple2 |
apply(Object o) |
static <T1,T2> Function<Object[],Tuple2<T1,T2>> |
fn2()
A converting function from Object array to
Tuple2 |
static <T1,T2,T3> Function<Object[],Tuple3<T1,T2,T3>> |
fn3()
A converting function from Object array to
Tuple3 |
static <T1,T2,T3,R> |
fn3(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(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(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(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(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(Function<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> delegate)
A converting function from Object array to
Tuple8 |
static Function<Object[],Tuple2> |
fnAny()
A converting function from Object array to
Tuples |
static <R> Function<Object[],R> |
fnAny(Function<Tuple2,R> delegate)
A converting function from Object array to
Tuples to R. |
static Tuple2 |
fromArray(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(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 Function<Object[],Tuple2> fnAny()
Tuples
Tuples
.public static <R> Function<Object[],R> fnAny(Function<Tuple2,R> delegate)
Tuples
to R.R
- The type of the return value.delegate
- the function to delegate topublic static <T1,T2> Function<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> Function<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> Function<Object[],R> fn3(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> Function<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> Function<Object[],R> fn4(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> Function<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> Function<Object[],R> fn5(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> Function<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> Function<Object[],R> fn6(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> Function<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> Function<Object[],R> fn7(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> Function<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> Function<Object[],R> fn8(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
.