V1 - first value typeV2 - second value typeV3 - third value typeV4 - fourth value typeV5 - fifth value typepublic class Tuple5<V1,V2,V3,V4,V5> extends Object
Instances are immutable.
| Constructor and Description |
|---|
Tuple5(V1 v1,
V2 v2,
V3 v3,
V4 v4,
V5 v5)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
asList()
View this instance as a list.
|
boolean |
equals(Object obj)
Compare for equality.
|
int |
getSize()
Get the number of values in this tuple.
|
V1 |
getValue1()
Get the first value.
|
V2 |
getValue2()
Get the second value.
|
V3 |
getValue3()
Get the third value.
|
V4 |
getValue4()
Get the fourth value.
|
V5 |
getValue5()
Get the fifth value.
|
int |
hashCode()
Compute hash code.
|
String |
toString() |
public V5 getValue5()
Has5public int getSize()
Tuplepublic List<Object> asList()
Tuplepublic int hashCode()
TupleThe hash code of a tuple is the exclusive-OR of the hash codes of the individual values (using zero for null values).
public V4 getValue4()
Has4public V3 getValue3()
Has3public V2 getValue2()
Has2public V1 getValue1()
Has1Copyright © 2016. All rights reserved.