Enum EvaluationReason.Kind

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ERROR
      Indicates that the flag could not be evaluated, e.g.
      FALLTHROUGH
      Indicates that the flag was on but the user did not match any targets or rules.
      OFF
      Indicates that the flag was off and therefore returned its configured off value.
      PREREQUISITE_FAILED
      Indicates that the flag was considered off because it had at least one prerequisite flag that either was off or did not return the desired variation.
      RULE_MATCH
      Indicates that the context matched one of the flag's rules.
      TARGET_MATCH
      Indicates that the context key was specifically targeted for this flag.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EvaluationReason.Kind valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EvaluationReason.Kind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • OFF

        public static final EvaluationReason.Kind OFF
        Indicates that the flag was off and therefore returned its configured off value.
      • FALLTHROUGH

        public static final EvaluationReason.Kind FALLTHROUGH
        Indicates that the flag was on but the user did not match any targets or rules.
      • TARGET_MATCH

        public static final EvaluationReason.Kind TARGET_MATCH
        Indicates that the context key was specifically targeted for this flag.
      • RULE_MATCH

        public static final EvaluationReason.Kind RULE_MATCH
        Indicates that the context matched one of the flag's rules.
      • PREREQUISITE_FAILED

        public static final EvaluationReason.Kind PREREQUISITE_FAILED
        Indicates that the flag was considered off because it had at least one prerequisite flag that either was off or did not return the desired variation.
      • ERROR

        public static final EvaluationReason.Kind ERROR
        Indicates that the flag could not be evaluated, e.g. because it does not exist or due to an unexpected error. In this case the result value will be the default value that the caller passed to the client. Check the errorKind property for more details on the problem.
    • Method Detail

      • values

        public static EvaluationReason.Kind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EvaluationReason.Kind c : EvaluationReason.Kind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EvaluationReason.Kind valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null