Class FlatTuple2
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.FlatTuple2
- All Implemented Interfaces:
ITuple
Flat tuple with statically known arity of 2.
- Since:
- 1.7
-
Field Summary
Fields inherited from class tools.refinery.interpreter.matchers.tuple.Tuple
cachedHash -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int index) 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, getElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
Constructor Details
-
FlatTuple2
-
-
Method Details
-
getSize
public int getSize()- Returns:
- number of elements
-
get
- Returns:
- the element at the specified index
-
internalEquals
Description copied from class:AbstractTupleCompares the elements stored in this tuple to another tuple- Overrides:
internalEqualsin classAbstractTuple
-