Package com.configcat

Class EvaluationDetails<T>


  • public class EvaluationDetails<T>
    extends java.lang.Object
    Additional 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, com.configcat.RolloutRule matchedEvaluationRule, com.configcat.PercentageRule matchedEvaluationPercentageRule)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getError()
      In case of an error, this field contains the error message.
      java.lang.Long getFetchTimeUnixMilliseconds()
      The last fetch time of the config.json in unix milliseconds format.
      java.lang.String getKey()
      The key of the evaluated feature flag or setting.
      com.configcat.PercentageRule getMatchedEvaluationPercentageRule()
      If the evaluation was based on a percentage rule, this field contains that specific rule.
      com.configcat.RolloutRule getMatchedEvaluationRule()
      If the evaluation was based on a targeting rule, this field contains that specific rule.
      User getUser()
      The user object that was used for evaluation.
      T getValue()
      The evaluated value of the feature flag or setting.
      java.lang.String getVariationId()
      The variationID is the identifier of the evaluated value.
      boolean isDefaultValue()
      True when the default value was returned, possibly due to an error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                 com.configcat.RolloutRule matchedEvaluationRule,
                                 com.configcat.PercentageRule matchedEvaluationPercentageRule)
    • 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.
      • getMatchedEvaluationRule

        public com.configcat.RolloutRule getMatchedEvaluationRule()
        If the evaluation was based on a targeting rule, this field contains that specific rule.
      • getMatchedEvaluationPercentageRule

        public com.configcat.PercentageRule getMatchedEvaluationPercentageRule()
        If the evaluation was based on a percentage rule, this field contains that specific rule.