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 Tuple
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.
|
T1 |
getT1()
Type-safe way to get the fist object of this
Tuple . |
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() |
apply, empty, fn2, fn3, fn3, fn4, fn4, fn5, fn5, fn6, fn6, fn7, fn7, fn8, fn8, fnAny, fnAny, of, of, of, of, of, of, of, of, of, size, toList
public T1 getT1()
Tuple
.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()
public java.lang.String toString()
toString
in class java.lang.Object