public final class Tuples extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
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. 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.t1 - The first value in the tuple. Not null.t2 - The second value in the tuple. Not null.t2 - The third value in the tuple. Not null.Tuple2.Copyright © 2020. All rights reserved.