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.

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 enum 
    Context, where the condition applies.
    static interface 
    This is a condition that can be converted to a tag
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    applies(Tagged tagged)
    Checks if the condition applies in the given Tagged element.
    boolean
    Checks if the condition applies in the given MapCSS Environment.
  • Method Details

    • applies

      boolean applies(Environment e)
      Checks if the condition applies in the given MapCSS Environment.
      Parameters:
      e - The environment to check. May not be null.
      Returns:
      true if the condition applies.
    • applies

      default boolean applies(Tagged tagged)
      Checks if the condition applies in the given Tagged element.
      Parameters:
      tagged - The tagged to check.
      Returns:
      true if the condition applies.