Class EvaluationSeriesContext


  • public class EvaluationSeriesContext
    extends java.lang.Object
    Represents parameters associated with a feature flag evaluation. An instance of this class is provided to some stages of series of a Hook implementation. For example, see Hook.beforeEvaluation(EvaluationSeriesContext, Map)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      LDContext context
      The context the evaluation was for.
      LDValue defaultValue
      The user-provided default value for the evaluation.
      java.lang.String flagKey
      The key of the feature flag being evaluated.
      java.lang.String method
      The variation method that was used to invoke the evaluation.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • method

        public final java.lang.String method
        The variation method that was used to invoke the evaluation. The stability of this string is not guaranteed and should not be used in conditional logic.
      • flagKey

        public final java.lang.String flagKey
        The key of the feature flag being evaluated.
      • context

        public final LDContext context
        The context the evaluation was for.
      • defaultValue

        public final LDValue defaultValue
        The user-provided default value for the evaluation.
    • Constructor Detail

      • EvaluationSeriesContext

        public EvaluationSeriesContext​(java.lang.String method,
                                       java.lang.String key,
                                       LDContext context,
                                       LDValue defaultValue)
        Parameters:
        method - the variation method that was used to invoke the evaluation.
        key - the key of the feature flag being evaluated.
        context - the context the evaluation was for.
        defaultValue - the user-provided default value for the evaluation.