Class VolatileMaskedTuple
java.lang.Object
tools.refinery.interpreter.matchers.tuple.AbstractTuple
tools.refinery.interpreter.matchers.tuple.VolatileTuple
tools.refinery.interpreter.matchers.tuple.VolatileMaskedTuple
- All Implemented Interfaces:
ITuple
- Direct Known Subclasses:
VolatileModifiableMaskedTuple
This class provides a volatile tuple view with a given mask of a given tuple instance. If the masked tuple changes,
the view updates as well.
- Since:
- 1.7
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVolatileMaskedTuple
(ITuple source, TupleMask mask) VolatileMaskedTuple
(TupleMask mask) -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) int
getSize()
void
updateTuple
(ITuple newSource) Methods inherited from class tools.refinery.interpreter.matchers.tuple.VolatileTuple
equals, hashCode, toImmutable
Methods inherited from class tools.refinery.interpreter.matchers.tuple.AbstractTuple
doCalcHash, getDistinctElements, getElements, internalEquals, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString
-
Field Details
-
mask
-
source
-
-
Constructor Details
-
VolatileMaskedTuple
-
VolatileMaskedTuple
-
-
Method Details
-
updateTuple
-
get
- Returns:
- the element at the specified index
-
getSize
public int getSize()- Returns:
- number of elements
-