Enum Class EvaluationReason.Kind

All Implemented Interfaces:
Serializable, Comparable<EvaluationReason.Kind>, Constable
Enclosing class:

public static enum EvaluationReason.Kind extends Enum<EvaluationReason.Kind>
Enumerated type defining the possible values of EvaluationReason.getKind().
  • Enum Constant Details

    • OFF

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

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

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

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

      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 Details

    • values

      public static EvaluationReason.Kind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

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