Modifier and Type | Method and Description |
---|---|
int |
arity()
Returns the number of elements of this tuple.
|
static Tuple0 |
empty()
Creates the empty tuple.
|
static <T1> Tuple1<T1> |
of(T1 t1)
Creates a tuple of one element.
|
static <T1,T2> Tuple2<T1,T2> |
of(T1 t1,
T2 t2)
Creates a tuple of two elements.
|
static <T1,T2,T3> Tuple3<T1,T2,T3> |
of(T1 t1,
T2 t2,
T3 t3)
Creates a tuple of three elements.
|
static <T1,T2,T3,T4> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Creates a tuple of 4 elements.
|
static <T1,T2,T3,T4,T5> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5)
Creates a tuple of 5 elements.
|
static <T1,T2,T3,T4,T5,T6> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6)
Creates a tuple of 6 elements.
|
static <T1,T2,T3,T4,T5,T6,T7> |
of(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7)
Creates a tuple of 7 elements.
|
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)
Creates a tuple of 8 elements.
|
Seq<?> |
toSeq()
Converts this tuple to a sequence.
|
int arity()
Seq<?> toSeq()
Seq
.static Tuple0 empty()
static <T1> Tuple1<T1> of(T1 t1)
T1
- type of the 1st elementt1
- the 1st elementstatic <T1,T2> Tuple2<T1,T2> of(T1 t1, T2 t2)
T1
- type of the 1st elementT2
- type of the 2nd elementt1
- the 1st elementt2
- the 2nd elementstatic <T1,T2,T3> Tuple3<T1,T2,T3> of(T1 t1, T2 t2, T3 t3)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementstatic <T1,T2,T3,T4> Tuple4<T1,T2,T3,T4> of(T1 t1, T2 t2, T3 t3, T4 t4)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementT4
- type of the 4th elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementt4
- the 4th elementstatic <T1,T2,T3,T4,T5> Tuple5<T1,T2,T3,T4,T5> of(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementT4
- type of the 4th elementT5
- type of the 5th elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementt4
- the 4th elementt5
- the 5th elementstatic <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)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementT4
- type of the 4th elementT5
- type of the 5th elementT6
- type of the 6th elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementt4
- the 4th elementt5
- the 5th elementt6
- the 6th elementstatic <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)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementT4
- type of the 4th elementT5
- type of the 5th elementT6
- type of the 6th elementT7
- type of the 7th elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementt4
- the 4th elementt5
- the 5th elementt6
- the 6th elementt7
- the 7th elementstatic <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)
T1
- type of the 1st elementT2
- type of the 2nd elementT3
- type of the 3rd elementT4
- type of the 4th elementT5
- type of the 5th elementT6
- type of the 6th elementT7
- type of the 7th elementT8
- type of the 8th elementt1
- the 1st elementt2
- the 2nd elementt3
- the 3rd elementt4
- the 4th elementt5
- the 5th elementt6
- the 6th elementt7
- the 7th elementt8
- the 8th elementCopyright © 2016. All Rights Reserved.