Package io.permazen.tuple
Interface Tuple
public interface Tuple
Implemented by all "tuple" classes.
-
Method Summary
-
Method Details
-
getSize
int getSize()Get the number of values in this tuple.- Returns:
- the size of this tuple
-
asList
View this instance as a list.- Returns:
- unmodifiable
List
view of this tuple
-
equals
Compare for equality.Tuples are equal if they have the same size and the corresponding individual values are equal (or null).
-
hashCode
int hashCode()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).
-