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

## Class MaskedTuple

- 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.MaskedTuple

- All Implemented Interfaces:
    `ITuple`

      public class MaskedTuple
      extends Tuple

  A tuple that transparently provides a masked (transformed) view of another tuple.
  Since:
    2.0

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.viatra.query.runtime.matchers.tuple.Tuple

      `cachedHash`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MaskedTuple​(Tuple wrapped, TupleMask mask)` |

  - ### Method Summary

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

    - ### 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, internalEquals, invertIndex, invertIndexWithMupliplicity, raiseIndexingError, toString`

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

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

- - ### Constructor Detail

    - #### MaskedTuple

          public MaskedTuple​(Tuple wrapped,
                             TupleMask mask)

  - ### Method Detail

    - #### get

          public java.lang.Object get​(int index)

      Returns:
        the element at the specified index

    - #### getSize

          public int getSize()

      Returns:
        number of elements