Class FlatTuple0
java.lang.Object
tools.refinery.interpreter.matchers.tuple.AbstractTuple
tools.refinery.interpreter.matchers.tuple.Tuple
tools.refinery.interpreter.matchers.tuple.BaseFlatTuple
tools.refinery.interpreter.matchers.tuple.FlatTuple0
- All Implemented Interfaces:
ITuple
Flat tuple with statically known arity of 0.
- Since:
- 1.7
-
Field Summary
FieldsFields inherited from class tools.refinery.interpreter.matchers.tuple.Tuple
cachedHash -
Method Summary
Modifier and TypeMethodDescriptionget(int index) Object[]As the tuple is supposed to be immutable, do not modify the returned array.intgetSize()protected booleaninternalEquals(ITuple other) Compares the elements stored in this tuple to another tupleMethods inherited from class tools.refinery.interpreter.matchers.tuple.Tuple
equals, hashCode, replaceAll, toImmutableMethods inherited from class tools.refinery.interpreter.matchers.tuple.AbstractTuple
doCalcHash, getDistinctElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
Field Details
-
INSTANCE
-
-
Method Details
-
getSize
public int getSize()- Returns:
- number of elements
-
get
- Returns:
- the element at the specified index
-
getElements
Description copied from class:AbstractTupleAs the tuple is supposed to be immutable, do not modify the returned array.- Specified by:
getElementsin interfaceITuple- Overrides:
getElementsin classAbstractTuple- Returns:
- the array containing all elements of this Tuple
-
internalEquals
Description copied from class:AbstractTupleCompares the elements stored in this tuple to another tuple- Overrides:
internalEqualsin classAbstractTuple
-