Class Tuple
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
-
- org.eclipse.viatra.query.runtime.matchers.tuple.Tuple
-
- All Implemented Interfaces:
ITuple
- Direct Known Subclasses:
BaseFlatTuple
,BaseLeftInheritanceTuple
,MaskedTuple
public abstract class Tuple extends AbstractTuple
Immutable tuple. Obtain instances via utility classTuples
.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cachedHash
Caches precalculated hash value
-
Constructor Summary
Constructors Modifier Constructor Description protected
Tuple()
Creates a Tuple instance Derivatives should call calcHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
Tuple
replaceAll(java.lang.Object obsolete, java.lang.Object replacement)
Tuple
toImmutable()
-
Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
doCalcHash, getDistinctElements, getElements, internalEquals, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
replaceAll
public Tuple replaceAll(java.lang.Object obsolete, java.lang.Object replacement)
-
toImmutable
public Tuple toImmutable()
-
-