Interface Condition
-
- All Known Subinterfaces:
Condition.TagCondition
- All Known Implementing Classes:
ConditionFactory.ClassCondition,ConditionFactory.ExpressionCondition,ConditionFactory.IndexCondition,ConditionFactory.KeyCondition,ConditionFactory.KeyRegexpCondition,ConditionFactory.KeyValueCondition,ConditionFactory.KeyValueRegexpCondition,ConditionFactory.OpenEndPseudoClassCondition,ConditionFactory.PseudoClassCondition,ConditionFactory.RegexpKeyValueRegexpCondition,ConditionFactory.RoleCondition,ConditionFactory.SimpleKeyValueCondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Condition
This is a condition that needs to be fulfilled in order to apply a MapCSS style.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCondition.ContextContext, where the condition applies.static interfaceCondition.TagConditionThis is a condition that can be converted to a tag
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanapplies(Tagged tagged)Checks if the condition applies in the givenTaggedelement.booleanapplies(Environment e)Checks if the condition applies in the given MapCSSEnvironment.
-
-
-
Method Detail
-
applies
boolean applies(Environment e)
Checks if the condition applies in the given MapCSSEnvironment.- Parameters:
e- The environment to check. May not benull.- Returns:
trueif the condition applies.
-
-