T - Type of the first thing.S - Type of the second thing.public final class Tuple<S,T> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
S |
getFirst()
Returns the first element of the
Tuple. |
T |
getSecond()
Returns the second element of the
Tuple. |
int |
hashCode() |
static <S,T> Tuple<S,T> |
of(S first,
T second)
Creates a new
Tuple for the given elements. |
public static <S,T> Tuple<S,T> of(S first, T second)
Tuple for the given elements.first - must not be null.second - must not be null.public S getFirst()
Tuple.public T getSecond()
Tuple.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.