org.eclipse.viatra.query.runtime.matchers.tuple

## Class VolatileMaskedTuple

- java.lang.Object
- - org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple
  - - org.eclipse.viatra.query.runtime.matchers.tuple.VolatileTuple
    - - org.eclipse.viatra.query.runtime.matchers.tuple.VolatileMaskedTuple

- All Implemented Interfaces:
    ITuple
  Direct Known Subclasses:
    VolatileModifiableMaskedTuple

      public class VolatileMaskedTuple
      extends VolatileTuple

  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
    Modifier and Type | Field and Description
    --- | ---
    `protected TupleMask` | `mask`
    `protected ITuple` | `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `VolatileMaskedTuple(ITuple source, TupleMask mask)`
    `VolatileMaskedTuple(TupleMask mask)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `get(int index)`
    `int` | `getSize()`
    `void` | `updateTuple(ITuple newSource)`

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.VolatileTuple

      `equals, hashCode, toImmutable`

    - ### Methods inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.AbstractTuple

      `doCalcHash, getDistinctElements, getElements, internalEquals, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### mask

          protected final TupleMask mask

    - #### source

          protected ITuple source

  - ### Constructor Detail

    - #### VolatileMaskedTuple

          public VolatileMaskedTuple(ITuple source,
                                     TupleMask mask)

    - #### VolatileMaskedTuple

          public VolatileMaskedTuple(TupleMask mask)

  - ### Method Detail

    - #### updateTuple

          public void updateTuple(ITuple newSource)

    - #### get

          public java.lang.Object get(int index)

      Returns:
        the element at the specified index

    - #### getSize

          public int getSize()

      Returns:
        number of elements