T
- the type of the first valueU
- the type of the second valuepublic final class Tuple<T,U>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> BuildableFunction<Tuple<T,?>,T> |
first() |
T |
getFirst()
Returns the first value held in the Tuple.
|
U |
getSecond()
Returns the second value held in the Tuple.
|
static <T,U> Tuple<T,U> |
of(T t,
U u)
Creates a Tuple with two values.
|
static <U> BuildableFunction<Tuple<?,U>,U> |
second() |
java.lang.String |
toString() |
public static final <T,U> Tuple<T,U> of(T t, U u)
T
- the type of the first valueU
- the type of the second valuet
- the first valueu
- the second valuepublic T getFirst()
public U getSecond()
public static final <T> BuildableFunction<Tuple<T,?>,T> first()
public static final <U> BuildableFunction<Tuple<?,U>,U> second()
public java.lang.String toString()
toString
in class java.lang.Object