T1 - Type for the first element of the tuple.T2 - Type for the second element of the tuple.T3 - Type for the third element of the tuple.T4 - Type for the fourth element of the tuple.public class Quadruplet<T1,T2,T3,T4> extends Triplet<T1,T2,T3>
| Modifier | Constructor and Description |
|---|---|
protected |
Quadruplet(T1 first,
T2 second,
T3 third,
T4 fourth)
Constructs a 4-tuple.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T4 |
getFourth()
Gets the fourth element of the tuple.
|
int |
hashCode() |
void |
setFourth(T4 fourth)
Sets the fourth element of the tuple.
|
String |
toString() |
static <TT1,TT2,TT3,TT4> |
valueOf(TT1 first,
TT2 second,
TT3 third,
TT4 fourth)
Creates a new 4-tuple using the given values.
|
getFirst, setFirst, valueOfpublic static <TT1,TT2,TT3,TT4> Quadruplet<TT1,TT2,TT3,TT4> valueOf(TT1 first, TT2 second, TT3 third, TT4 fourth)
TT1 - the type for the first element of the tuple.TT2 - the type for the second element of the tuple.TT3 - the type for the third element of the tuple.TT4 - the type for the fourth element of the tuple.first - First element in the tuple.second - Second element in the tuple.third - Third element in the tuple.fourth - Fourth element in the tuple.public T4 getFourth()
public void setFourth(T4 fourth)
fourth - The fourth element.Copyright © 2014. All Rights Reserved.