Package growthbook.sdk.java.evaluators
Interface IConditionEvaluator
- All Known Implementing Classes:
ConditionEvaluator
public interface IConditionEvaluator
INTERNAL: Recursion entry point for condition evaluation.
Logical-operator strategies receive an instance of this interface and call back into
evaluateCondition(com.google.gson.JsonObject, com.google.gson.JsonObject, com.google.gson.JsonObject) for nested sub-conditions, so the recursion funnels through a
single point (the Interpreter pattern) instead of each strategy depending on the concrete
evaluator.
Widened from package-private to public so Condition's strategies, which live in this
package but are referenced from the enum's public constants, can accept it. Despite the modifier
this is not supported API.
-
Method Summary
Modifier and TypeMethodDescriptionevaluateCondition(com.google.gson.JsonObject attributesJson, com.google.gson.JsonObject conditionJson, com.google.gson.JsonObject savedGroups)
-
Method Details
-
evaluateCondition
Boolean evaluateCondition(com.google.gson.JsonObject attributesJson, com.google.gson.JsonObject conditionJson, @Nullable com.google.gson.JsonObject savedGroups)
-