public final class TupleMaskIdentity extends TupleMask
indices, sourceWidth
Modifier and Type | Method and Description |
---|---|
boolean |
isIdentity() |
Tuple |
revertFrom(ITuple masked)
Returns a tuple `result` that satisfies `this.transform(result).equals(masked)`.
|
Tuple |
transform(ITuple original)
Generates an immutable, masked view of the original tuple.
|
<T> java.util.List<T> |
transform(java.util.List<T> original)
Generates an immutable, masked view of the original tuple.
|
TupleMask |
transform(TupleMask mask)
Transforms a given mask directly, instead of transforming tuples that were transformed by the other mask.
|
append, combine, constructLinearSequence, displace, empty, equals, fromKeepIndicators, fromNonNullIndices, fromSelectedIndices, fromSelectedIndices, fromSelectedIndicesInternal, fromSelectedMonotonicIndicesInternal, getFirstOmittedIndex, getIndicesAsList, getSize, getSourceWidth, getValue, hashCode, identity, integersToIntArray, isNonrepeating, keepSelectedIndices, linear, omit, selectSingle, set, toString, transformUnique
public <T> java.util.List<T> transform(java.util.List<T> original)
TupleMask
The list will have arity TupleMask.getSize()
,
and will consist of the elements of the original tuple, at positions indicated by this mask.
public Tuple transform(ITuple original)
TupleMask
The new tuple will have arity TupleMask.getSize()
,
and will consist of the elements of the original tuple, at positions indicated by this mask.
public TupleMask transform(TupleMask mask)
TupleMask
public Tuple revertFrom(ITuple masked)
TupleMask
revertFrom
in class TupleMask
public boolean isIdentity()
isIdentity
in class TupleMask