public abstract class Tuples
extends java.lang.Object
Tuple factory.| Constructor and Description |
|---|
Tuples() |
| Modifier and Type | Method and Description |
|---|---|
static Tuple |
empty()
Build an empty
Tuple instance. |
static <T1> Tuple1<T1> |
of(T1 t1)
Create a
Tuple1 with the given object. |
static <T1,T2> Tuple2<T1,T2> |
of(T1 t1,
T2 t2)
Create a
Tuple2 with the given objects. |
public static <T1> Tuple1<T1> of(T1 t1)
Tuple1 with the given object.T1 - The type of the first value.t1 - The first value in the tuple.Tuple1.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.