Package cdc.enums
Class AbstractSynthesisMask<M extends AbstractSynthesisMask<M,V>,V>
java.lang.Object
cdc.enums.AbstractSynthesisMask<M,V>
- All Implemented Interfaces:
SynthesisMask<M,V>
- Direct Known Subclasses:
EnumSynthesisMask,NullableEnumSynthesisMask
public abstract class AbstractSynthesisMask<M extends AbstractSynthesisMask<M,V>,V>
extends Object
implements SynthesisMask<M,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceAbstractSynthesisMask.Creator<M extends AbstractSynthesisMask<M,V>, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<V,SynthesisStatus> protected final SynthesisMaskSupport<M,V> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSynthesisMask(SynthesisMaskSupport<M, V> support, Map<V, SynthesisStatus> map) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the status associated to a value.final SynthesisMaskSupport<M,V> getType()inthashCode()booleanset(V value, SynthesisStatus status) Sets the status of a value.setAll(SynthesisStatus status) Sets the status of all values.static <M extends AbstractSynthesisMask<M,V>, V>
SynthesisMaskSupport<M,V> support(Class<M> maskClass, AbstractSynthesisMask.Creator<M, V> creator, ListType<V> type, Nullable nullable) protected static <M extends AbstractSynthesisMask<M,V>, V extends Enum<V>>
SynthesisMaskSupport<M,V> support(Class<M> maskClass, AbstractSynthesisMask.Creator<M, V> creator, Class<V> enumClass, Nullable nullable) toString()toString(Function<SynthesisStatus, String> statusToString, String separator) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdc.enums.SynthesisMask
isLooselySet
-
Field Details
-
support
-
map
-
-
Constructor Details
-
AbstractSynthesisMask
-
-
Method Details
-
support
public static <M extends AbstractSynthesisMask<M,V>, SynthesisMaskSupport<M,V> V> support(Class<M> maskClass, AbstractSynthesisMask.Creator<M, V> creator, ListType<V> type, Nullable nullable) -
support
protected static <M extends AbstractSynthesisMask<M,V>, SynthesisMaskSupport<M,V extends Enum<V>> V> support(Class<M> maskClass, AbstractSynthesisMask.Creator<M, V> creator, Class<V> enumClass, Nullable nullable) -
getSupport
- Specified by:
getSupportin interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Returns:
- The associated support.
-
getType
- Specified by:
getTypein interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Returns:
- The associated type.
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Returns:
trueifnullis a valid mask value that can be characterized.
-
set
Description copied from interface:SynthesisMaskSets the status of a value.- Specified by:
setin interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Parameters:
value- The value.status- The status.- Returns:
- The corresponding mask.
-
setAll
Description copied from interface:SynthesisMaskSets the status of all values.- Specified by:
setAllin interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Parameters:
status- The status.- Returns:
- The corresponding mask.
-
get
Description copied from interface:SynthesisMaskReturns the status associated to a value.- Specified by:
getin interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V> - Parameters:
value- The value.- Returns:
- The status of
value.
-
merge
- Specified by:
mergein interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V>
-
merge
- Specified by:
mergein interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V>
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfaceSynthesisMask<M extends AbstractSynthesisMask<M,V>, V>
-
toString
-