Class LeftInheritanceTuple
java.lang.Object
tools.refinery.interpreter.matchers.tuple.AbstractTuple
tools.refinery.interpreter.matchers.tuple.Tuple
tools.refinery.interpreter.matchers.tuple.BaseLeftInheritanceTuple
tools.refinery.interpreter.matchers.tuple.LeftInheritanceTuple
- All Implemented Interfaces:
ITuple
Tuple that inherits another tuple on the left.
-
Field Summary
Fields inherited from class tools.refinery.interpreter.matchers.tuple.BaseLeftInheritanceTuple
ancestor, inheritedIndex
Fields inherited from class tools.refinery.interpreter.matchers.tuple.Tuple
cachedHash
-
Method Summary
Methods inherited from class tools.refinery.interpreter.matchers.tuple.BaseLeftInheritanceTuple
internalEquals
Methods 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, getElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
Method Details
-
getSize
public int getSize()- Returns:
- number of elements
-
getLocalSize
public int getLocalSize()- Specified by:
getLocalSize
in classBaseLeftInheritanceTuple
- Returns:
- the number of local (non-inherited) elements
-
get
- Returns:
- the element at the specified index
-
localEquals
Optimized equals calculation (prediction: true, since hash values match)- Specified by:
localEquals
in classBaseLeftInheritanceTuple
-