Package io.permazen.tuple
Class Tuple3<V1,V2,V3>
java.lang.Object
io.permazen.tuple.Tuple3<V1,V2,V3>
- Type Parameters:
V1- first value typeV2- second value typeV3- third value type
A tuple of three values.
Instances are immutable.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Tuple3
Constructor.- Parameters:
v1- the first valuev2- the second valuev3- the third value
-
-
Method Details
-
getValue3
Description copied from interface:Has3Get the third value. -
getSize
public int getSize()Description copied from interface:TupleGet the number of values in this tuple. -
asList
Description copied from interface:TupleView this instance as a list. -
getValue2
Description copied from interface:Has2Get the second value. -
getValue1
Description copied from interface:Has1Get the first value. -
toString
-
equals
Description copied from interface:TupleCompare 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:TupleCompute 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).
-