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.int
getSize()
protected boolean
internalEquals
(ITuple other) Compares the elements stored in this tuple to another tupleMethods inherited from class tools.refinery.interpreter.matchers.tuple.Tuple
equals, hashCode, replaceAll, toImmutable
Methods 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:AbstractTuple
As the tuple is supposed to be immutable, do not modify the returned array.- Specified by:
getElements
in interfaceITuple
- Overrides:
getElements
in classAbstractTuple
- Returns:
- the array containing all elements of this Tuple
-
internalEquals
Description copied from class:AbstractTuple
Compares the elements stored in this tuple to another tuple- Overrides:
internalEquals
in classAbstractTuple
-