public final class FlatTuple extends BaseFlatTuple
cachedHash
Modifier | Constructor and Description |
---|---|
protected |
FlatTuple(java.lang.Object... elements)
Creates a FlatTuple instance, fills it with the given array.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(int index) |
java.lang.Object[] |
getElements()
As the tuple is supposed to be immutable, do not modify the returned array.
|
int |
getSize() |
protected boolean |
internalEquals(ITuple other)
Compares the elements stored in this tuple to another tuple
|
equals, hashCode, replaceAll, toImmutable
doCalcHash, getDistinctElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
protected FlatTuple(java.lang.Object... elements)
Users should consider calling Tuples.flatTupleOf(Object...)
instead to save memory on low-arity tuples.
elements
- array of substitution valuespublic java.lang.Object get(int index)
public int getSize()
public java.lang.Object[] getElements()
AbstractTuple
getElements
in interface ITuple
getElements
in class AbstractTuple
protected boolean internalEquals(ITuple other)
AbstractTuple
internalEquals
in class AbstractTuple