Package com.configcat
Class EvaluationDetails<T>
- java.lang.Object
-
- com.configcat.EvaluationDetails<T>
-
public class EvaluationDetails<T> extends java.lang.ObjectAdditional information about flag evaluation.
-
-
Constructor Summary
Constructors Constructor Description EvaluationDetails(T value, java.lang.String key, java.lang.String variationId, User user, boolean isDefaultValue, java.lang.String error, long fetchTimeUnixMilliseconds, TargetingRule matchedTargetingRule, PercentageOption matchedPercentageOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetError()In case of an error, this field contains the error message.java.lang.LonggetFetchTimeUnixMilliseconds()The last fetch time of the config.json in unix milliseconds format.java.lang.StringgetKey()The key of the evaluated feature flag or setting.PercentageOptiongetMatchedPercentageOption()If the evaluation was based on a percentage rule, this field contains that specific rule.TargetingRulegetMatchedTargetingRule()If the evaluation was based on a targeting rule, this field contains that specific rule.UsergetUser()The user object that was used for evaluation.TgetValue()The evaluated value of the feature flag or setting.java.lang.StringgetVariationId()The variationID is the identifier of the evaluated value.booleanisDefaultValue()True when the default value was returned, possibly due to an error.
-
-
-
Constructor Detail
-
EvaluationDetails
public EvaluationDetails(T value, java.lang.String key, java.lang.String variationId, User user, boolean isDefaultValue, java.lang.String error, long fetchTimeUnixMilliseconds, TargetingRule matchedTargetingRule, PercentageOption matchedPercentageOption)
-
-
Method Detail
-
getValue
public T getValue()
The evaluated value of the feature flag or setting.
-
getKey
public java.lang.String getKey()
The key of the evaluated feature flag or setting.
-
getVariationId
public java.lang.String getVariationId()
The variationID is the identifier of the evaluated value. Usually used for analytics.
-
getUser
public User getUser()
The user object that was used for evaluation.
-
isDefaultValue
public boolean isDefaultValue()
True when the default value was returned, possibly due to an error.
-
getError
public java.lang.String getError()
In case of an error, this field contains the error message.
-
getFetchTimeUnixMilliseconds
public java.lang.Long getFetchTimeUnixMilliseconds()
The last fetch time of the config.json in unix milliseconds format.
-
getMatchedTargetingRule
public TargetingRule getMatchedTargetingRule()
If the evaluation was based on a targeting rule, this field contains that specific rule.
-
getMatchedPercentageOption
public PercentageOption getMatchedPercentageOption()
If the evaluation was based on a percentage rule, this field contains that specific rule.
-
-