public abstract class Tuples extends Object
Collection of objects, each of which can be of an arbitrary type.| 构造器和说明 |
|---|
Tuples() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Tuple2 |
from(Object[] list)
|
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 from(Object[] list)
list - the content of the Tuple (size 1 to 8)Tuple2.IllegalArgumentException - if the array is not of length 1-8public 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. Not null.t2 - The second value in the tuple. Not null.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. Not null.t2 - The second value in the tuple. Not null.t3 - The third value in the tuple. Not null.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. Not null.t2 - The second value in the tuple. Not null.t3 - The third value in the tuple. Not null.t4 - The fourth value in the tuple. Not null.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. Not null.t2 - The second value in the tuple. Not null.t3 - The third value in the tuple. Not null.t4 - The fourth value in the tuple. Not null.t5 - The fifth value in the tuple. Not null.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. Not null.t2 - The second value in the tuple. Not null.t3 - The third value in the tuple. Not null.t4 - The fourth value in the tuple. Not null.t5 - The fifth value in the tuple. Not null.t6 - The sixth value in the tuple. Not null.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. Not null.t2 - The second value in the tuple. Not null.t3 - The third value in the tuple. Not null.t4 - The fourth value in the tuple. Not null.t5 - The fifth value in the tuple. Not null.t6 - The sixth value in the tuple. Not null.t7 - The seventh value in the tuple. Not null.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. Not Null.t2 - The second value in the tuple.Not Null.t3 - The third value in the tuple. Not Null.t4 - The fourth value in the tuple. Not Null.t5 - The fifth value in the tuple. Not Null.t6 - The sixth value in the tuple. Not Null.t7 - The seventh value in the tuple. Not Null.t8 - The eighth value in the tuple. Not Null.Tuple8.Copyright © 2018. All rights reserved.