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 intcachedHashCaches precalculated hash value
-
Constructor Summary
Constructors Modifier Constructor Description protectedTuple()Creates a Tuple instance Derivatives should call calcHash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()TuplereplaceAll(java.lang.Object obsolete, java.lang.Object replacement)TupletoImmutable()-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
replaceAll
public Tuple replaceAll(java.lang.Object obsolete, java.lang.Object replacement)
-
toImmutable
public Tuple toImmutable()
-
-