T1
- the type of the 1st elementT2
- the type of the 2nd elementpublic class Tuple2<T1,T2> extends Tuple1<T1>
Tuple
of 2 elements.Constructor and Description |
---|
Tuple2(T1 element1,
T2 element2)
Constructs a new
Tuple with the supplied elements. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
T2 |
getElement2()
Returns the 2nd element of this tuple.
|
int |
hashCode() |
void |
setElement2(T2 element2)
Sets the 2nd element of this tuple.
|
int |
size()
Returns the number of elements of this tuple.
|
getElement1, setElement1
public T2 getElement2()
public void setElement2(T2 element2)
public int size()
Tuple