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 class
Condition.Context
Context, where the condition applies.static interface
Condition.TagCondition
This 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 boolean
applies(Tagged tagged)
Checks if the condition applies in the givenTagged
element.boolean
applies(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:
true
if the condition applies.
-
-