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, toImmutabledoCalcHash, getDistinctElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toStringprotected 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()
AbstractTuplegetElements in interface ITuplegetElements in class AbstractTupleprotected boolean internalEquals(ITuple other)
AbstractTupleinternalEquals in class AbstractTuple