Package io.permazen.tuple
Class Tuple5<V1,V2,V3,V4,V5>
java.lang.Object
io.permazen.tuple.Tuple5<V1,V2,V3,V4,V5>
- Type Parameters:
V1
- first value typeV2
- second value typeV3
- third value typeV4
- fourth value typeV5
- fifth value type
- All Implemented Interfaces:
Has1<V1>
,Has2<V1,
,V2> Has3<V1,
,V2, V3> Has4<V1,
,V2, V3, V4> Has5<V1,
,V2, V3, V4, V5> Tuple
A tuple of five values.
Instances are immutable.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasList()
View this instance as a list.boolean
Compare for equality.int
getSize()
Get the number of values in this tuple.Get the first value.Get the second value.Get the third value.Get the fourth value.Get the fifth value.int
hashCode()
Compute hash code.toString()
-
Constructor Details
-
Tuple5
Constructor.- Parameters:
v1
- the first valuev2
- the second valuev3
- the third valuev4
- the fouth valuev5
- the fifth value
-
-
Method Details
-
getValue5
Description copied from interface:Has5
Get the fifth value. -
getSize
public int getSize()Description copied from interface:Tuple
Get the number of values in this tuple. -
asList
Description copied from interface:Tuple
View this instance as a list. -
getValue4
Description copied from interface:Has4
Get the fourth value. -
getValue3
Description copied from interface:Has3
Get the third value. -
getValue2
Description copied from interface:Has2
Get the second value. -
getValue1
Description copied from interface:Has1
Get the first value. -
toString
-
equals
Description copied from interface:Tuple
Compare for equality.Tuples are equal if they have the same size and the corresponding individual values are equal (or null).
-
hashCode
public int hashCode()Description copied from interface:Tuple
Compute hash code.The hash code of a tuple is the exclusive-OR of the hash codes of the individual values (using zero for null values).
-