Package cdc.enums
Class AbstractBaseListSupport<V>
java.lang.Object
cdc.enums.AbstractBaseListSupport<V>
- All Implemented Interfaces:
ListType<V>
- Direct Known Subclasses:
AbstractBaseDagSupport
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBaseListSupport(Class<V> cls, DagFeature... features) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddEventHandler(DagEventHandler handler) Adds an event handler.protected final voidcheckIsSupported(DagFeature feature) Checks that a feature is supported.protected final voidcheckIsValid(V value) Checks that a value is valid.protected final voidfire(V value, DagEventType eventType) protected abstract booleanisContained(V value) Returnstrueif a value is contained by this support.final booleanisSupported(DagFeature feature) Returnstruewhen a feature is supported.final voidremoveEventHandler(DagEventHandler handler) Removes an event handler.
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
AbstractBaseListSupport
-
-
Method Details
-
addEventHandler
Description copied from interface:ListTypeAdds an event handler.- Specified by:
addEventHandlerin interfaceListType<V>- Parameters:
handler- The event handler.
-
removeEventHandler
Description copied from interface:ListTypeRemoves an event handler.- Specified by:
removeEventHandlerin interfaceListType<V>- Parameters:
handler- The event handler.
-
fire
-
isSupported
Description copied from interface:ListTypeReturnstruewhen a feature is supported.Locking may make a feature not available even if it is supported.
- Specified by:
isSupportedin interfaceListType<V>- Parameters:
feature- The feature.- Returns:
truewhenfeatureis supported.
-
getValueClass
- Specified by:
getValueClassin interfaceListType<V>- Returns:
- The enum value class.
-
checkIsValid
Checks that a value is valid.- Parameters:
value- The value.- Throws:
IllegalArgumentException- Whenvalueis not valid.
-
checkIsSupported
Checks that a feature is supported.- Parameters:
feature- The feature.- Throws:
IllegalArgumentException- Whenfeatureis not supported.
-
isContained
Returnstrueif a value is contained by this support.- Parameters:
value- The value.- Returns:
trueifvalueis contained by this support.
-