Interface ConditionEvaluator
- All Known Implementing Classes:
RuleBasedConditionEvaluator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Evaluates a single condition using a condition index.
This functional interface provides maximum flexibility for condition evaluation implementations. Implementations are responsible maintaining their own internal state as methods are called (e.g., tracking variables).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(int conditionIndex) Evaluates the condition at the given index.
-
Method Details
-
test
boolean test(int conditionIndex) Evaluates the condition at the given index.- Parameters:
conditionIndex
- the index of the condition to evaluate- Returns:
- true if the condition is satisfied, false otherwise
-