public final class Tuple2<T1,T2> extends java.lang.Object
A container for two values.
Use the corresponding Tuple.create(Object, Object) method to instantiate this tuple.
Tuple.create(Object, Object)
Tuple2<T2,T1>
swap()
Tuple2
T1
value1()
T2
value2()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public T1 value1()
Get the first value.
public T2 value2()
Get the second value.
public Tuple2<T2,T1> swap()
Create a new Tuple2 where the two values are swapped.