| Constructor and Description |
|---|
Tuple2() |
| Modifier and Type | Method and Description |
|---|---|
abstract T0 |
get_0()
Gets the 0th element.
|
abstract T1 |
get_1()
Gets the 1st element.
|
static <T0,T1> Tuple2<T0,T1> |
of(T0 t0,
T1 t1)
Creates a
Tuple2 of 2 elements. |
int |
size()
Gets the number of elements of the
Tuple. |
Tuple1<T1> |
tail()
Gets a
Tuple1 with all the elements of this tuple skipping the first
one. |
public static <T0,T1> Tuple2<T0,T1> of(T0 t0, T1 t1)
Tuple2 of 2 elements.T0 - type of 0th elementT1 - type of 1th elementt0 - 0th elementt1 - 1th elementTuple2public int size()
TupleTuple.Tuplepublic abstract T0 get_0()
public abstract T1 get_1()
Copyright © 2021. All rights reserved.