Package org.opt4j.config
Class EnumRequirement
java.lang.Object
org.opt4j.config.EnumRequirement
- All Implemented Interfaces:
Requirement
-
Constructor Summary
ConstructorsConstructorDescriptionEnumRequirement(Property property, Collection<Object> elements) Constructs aEnumRequirement. -
Method Summary
Modifier and TypeMethodDescriptionReturns the property of the requirement.booleanReturnstrueif the requirement is fulfilled.
-
Constructor Details
-
EnumRequirement
Constructs aEnumRequirement.- Parameters:
property- the monitored propertyelements- the allowed elements
-
-
Method Details
-
getProperty
Description copied from interface:RequirementReturns the property of the requirement.- Specified by:
getPropertyin interfaceRequirement- Returns:
- the property of the requirement
-
isFulfilled
public boolean isFulfilled()Description copied from interface:RequirementReturnstrueif the requirement is fulfilled.- Specified by:
isFulfilledin interfaceRequirement- Returns:
trueif the requirement is fulfilled
-