Package org.opt4j.core.config
Class BooleanRequirement
java.lang.Object
org.opt4j.core.config.BooleanRequirement
- All Implemented Interfaces:
Requirement
-
Constructor Summary
ConstructorDescriptionBooleanRequirement
(Property property, boolean value) Constructs aBooleanRequirement
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the property of the requirement.boolean
Returnstrue
if the requirement is fulfilled.
-
Constructor Details
-
BooleanRequirement
Constructs aBooleanRequirement
.- Parameters:
property
- the monitored propertyvalue
- the boolean value
-
-
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
Description copied from interface:Requirement
Returnstrue
if the requirement is fulfilled.- Specified by:
isFulfilled
in interfaceRequirement
- Returns:
true
if the requirement is fulfilled
-