public class Tuples
extends java.lang.Object
| Constructor and Description |
|---|
Tuples() |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Pair<A,B> |
pair(A a,
B b)
Create a Pair object.
|
static <A,B,C> Tuple3<A,B,C> |
tuple(A a,
B b,
C c)
Create a 3-object tuple.
|
static <A,B,C,D> Tuple4<A,B,C,D> |
tuple(A a,
B b,
C c,
D d)
Create a 4-object tuple.
|
static <A,B,C,D,E> |
tuple(A a,
B b,
C c,
D d,
E e)
Create a 5-object tuple.
|
public static <A,B> Pair<A,B> pair(A a, B b)
a - the first object.b - the 2nd object.public static <A,B,C> Tuple3<A,B,C> tuple(A a, B b, C c)
a - the 1st object.b - the 2nd object.c - the 3rd object.public static <A,B,C,D> Tuple4<A,B,C,D> tuple(A a, B b, C c, D d)
a - the 1st object.b - the 2nd object.c - the 3rd object.d - the 4th object.public static <A,B,C,D,E> Tuple5<A,B,C,D,E> tuple(A a, B b, C c, D d, E e)
a - the 1st object.b - the 2nd object.c - the 3rd object.d - the 4th object.e - the 5th object.