-
public class EvaluationDetails<T>Additional information about flag evaluation.
-
-
Field Summary
Fields Modifier and Type Field Description private final Tvalueprivate final Stringkeyprivate final StringvariationIdprivate final Useruserprivate final booleanisDefaultValueprivate final Stringerrorprivate final RolloutRulematchedEvaluationRuleprivate final PercentageRulematchedEvaluationPercentageRule
-
Constructor Summary
Constructors Constructor Description EvaluationDetails(T value, String key, String variationId, User user, boolean isDefaultValue, String error, long fetchTimeUnixMilliseconds, RolloutRule matchedEvaluationRule, PercentageRule matchedEvaluationPercentageRule)
-
Method Summary
Modifier and Type Method Description TgetValue()The evaluated value of the feature flag or setting. StringgetKey()The key of the evaluated feature flag or setting. StringgetVariationId()The variationID is the identifier of the evaluated value. UsergetUser()The user object that was used for evaluation. booleanisDefaultValue()True when the default value was returned, possibly due to an error. StringgetError()In case of an error, this field contains the error message. RolloutRulegetMatchedEvaluationRule()If the evaluation was based on a targeting rule, this field contains that specific rule. PercentageRulegetMatchedEvaluationPercentageRule()If the evaluation was based on a percentage rule, this field contains that specific rule. -
-
Constructor Detail
-
EvaluationDetails
EvaluationDetails(T value, String key, String variationId, User user, boolean isDefaultValue, String error, long fetchTimeUnixMilliseconds, RolloutRule matchedEvaluationRule, PercentageRule matchedEvaluationPercentageRule)
-
-
Method Detail
-
getValue
T getValue()
The evaluated value of the feature flag or setting.
-
getVariationId
String getVariationId()
The variationID is the identifier of the evaluated value. Usually used for analytics.
-
isDefaultValue
boolean isDefaultValue()
True when the default value was returned, possibly due to an error.
-
getMatchedEvaluationRule
RolloutRule getMatchedEvaluationRule()
If the evaluation was based on a targeting rule, this field contains that specific rule.
-
getMatchedEvaluationPercentageRule
PercentageRule getMatchedEvaluationPercentageRule()
If the evaluation was based on a percentage rule, this field contains that specific rule.
-
-
-
-