public final class Tuple2<T1,T2> extends 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
String
toString()
T1
value1()
T2
value2()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.
public String toString()
toString
Object
Copyright © 2017 Couchbase, Inc.. All rights reserved.