public class BooleanRequirement extends Object implements Requirement
| Constructor and Description |
|---|
BooleanRequirement(Property property,
boolean value)
Constructs a
BooleanRequirement. |
| Modifier and Type | Method and Description |
|---|---|
Property |
getProperty()
Returns the property of the requirement.
|
boolean |
isFulfilled()
Returns
true if the requirement is fulfilled. |
public BooleanRequirement(Property property, boolean value)
BooleanRequirement.property - the monitored propertyvalue - the boolean valuepublic Property getProperty()
RequirementgetProperty in interface Requirementpublic boolean isFulfilled()
Requirementtrue if the requirement is fulfilled.isFulfilled in interface Requirementtrue if the requirement is fulfilled