T1
- The type of the first value held by this tupleT2
- The type of the second balue held by this tuplepublic class Tuple2<T1,T2> extends Tuple1<T1>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(int index)
Get the object at the given index.
|
T2 |
getT2()
Type-safe way to get the second object of this
Tuple . |
int |
hashCode() |
java.util.Iterator<?> |
iterator() |
java.lang.Object[] |
toArray()
Turn this Tuple into a plain Object array.
|
java.lang.String |
toString() |
empty, of, of, of, of, of, of, of, of, of, of, size
public final T2 t2
public T2 getT2()
Tuple
.@Nullable public java.lang.Object get(int index)
Tuple
public java.lang.Object[] toArray()
Tuple
@Nonnull public java.util.Iterator<?> iterator()