Interface ConditionRuleSource

All Superinterfaces:
RuleSource, SurfaceRule, Wrapper

@NullMarked @AsOf("3.0.0") public interface ConditionRuleSource extends RuleSource
Applies a rule only when a condition holds.
Since:
3.0.0
See Also:
  • Method Details

    • condition

      @AsOf("3.0.0") ConditionSource condition()
      The gating condition.
      Returns:
      the condition
      Since:
      3.0.0
    • then

      @AsOf("3.0.0") RuleSource then()
      The rule applied when the condition holds.
      Returns:
      the rule
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static ConditionRuleSource of(ConditionSource condition, RuleSource then)
      Creates a new condition rule source.
      Parameters:
      condition - the gating condition
      then - the rule applied when the condition holds
      Returns:
      the condition rule source
      Since:
      3.0.0