Package org.opt4j.config
Class EnumRequirement
- java.lang.Object
-
- org.opt4j.config.EnumRequirement
-
- All Implemented Interfaces:
Requirement
public class EnumRequirement extends Object implements Requirement
-
-
Constructor Summary
Constructors Constructor Description EnumRequirement(Property property, Collection<Object> elements)Constructs aEnumRequirement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertygetProperty()Returns the property of the requirement.booleanisFulfilled()Returnstrueif the requirement is fulfilled.
-
-
-
Constructor Detail
-
EnumRequirement
public EnumRequirement(Property property, Collection<Object> elements)
Constructs aEnumRequirement.- Parameters:
property- the monitored propertyelements- the allowed elements
-
-
Method Detail
-
getProperty
public Property 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
-
-