Class LeftInheritanceTuple1
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.Tuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.BaseLeftInheritanceTuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.LeftInheritanceTuple1
-
- All Implemented Interfaces:
ITuple
public final class LeftInheritanceTuple1 extends BaseLeftInheritanceTuple
- Since:
- 1.7
-
-
Field Summary
-
Fields inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.BaseLeftInheritanceTuple
ancestor, inheritedIndex
-
Fields inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.Tuple
cachedHash
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LeftInheritanceTuple1(Tuple ancestor, java.lang.Object localElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(int index)
int
getLocalSize()
int
getSize()
protected boolean
localEquals(BaseLeftInheritanceTuple other)
Optimized equals calculation (prediction: true, since hash values match)-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.BaseLeftInheritanceTuple
internalEquals
-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.Tuple
equals, hashCode, replaceAll, toImmutable
-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
doCalcHash, getDistinctElements, getElements, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
-
-
-
Constructor Detail
-
LeftInheritanceTuple1
protected LeftInheritanceTuple1(Tuple ancestor, java.lang.Object localElement)
- Parameters:
ancestor
-localElement
-
-
-
Method Detail
-
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
public java.lang.Object get(int index)
- Returns:
- the element at the specified index
-
localEquals
protected boolean localEquals(BaseLeftInheritanceTuple other)
Optimized equals calculation (prediction: true, since hash values match)- Specified by:
localEquals
in classBaseLeftInheritanceTuple
-
-