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(Object o) |
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() |
Iterator<?> |
iterator() |
Object[] |
toArray()
Turn this Tuple into a plain Object array.
|
String |
toString() |
empty, of, of, of, of, of, of, of, of, of, of, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public final T2 t2
public T2 getT2()
Tuple
.@Nullable public Object get(int index)
Tuple
public Object[] toArray()
Tuple
Copyright © 2016. All rights reserved.