T - the value type.public class MaskedType<T extends Type<T>> extends Object implements Type<MaskedType<T>>
Masked Type wrapping a Type<T>.
Provides implementations of Masked and Type interfaces.
| Constructor and Description |
|---|
MaskedType(T value) |
MaskedType(T value,
double mask) |
| Modifier and Type | Method and Description |
|---|---|
MaskedType<T> |
copy()
|
MaskedType<T> |
createVariable()
Creates a new
Type variable which can only store one value. |
boolean |
equals(Object obj) |
int |
hashCode() |
double |
mask() |
void |
set(MaskedType<T> c)
Sets the value of another
Type. |
void |
setMask(double mask) |
void |
setValue(T value)
If
T extends Type<T> uses the Type.set(Type) method to
update the internal value instance. |
T |
value() |
boolean |
valueEquals(MaskedType<T> other) |
public MaskedType(T value)
public MaskedType(T value, double mask)
public void setValue(T value)
MaskedT extends Type<T> uses the Type.set(Type) method to
update the internal value instance. Otherwise, updates Masked.value()
to reference the given value.public void set(MaskedType<T> c)
TypeType.public MaskedType<T> copy()
Typepublic MaskedType<T> createVariable()
TypeType variable which can only store one value.createVariable in interface Type<MaskedType<T extends Type<T>>>Type variablepublic boolean valueEquals(MaskedType<T> other)
valueEquals in interface ValueEquals<MaskedType<T extends Type<T>>>Copyright © 2009–2025 ImgLib2. All rights reserved.