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