Package io.github.brantunger.unruly.api
Enum Class RuleEvaluation.Outcome
- All Implemented Interfaces:
Serializable,Comparable<RuleEvaluation.Outcome>,Constable
- Enclosing class:
RuleEvaluation
What evaluating a rule's condition found, or that the run skipped the rule. A run that fails throws, so there is
no outcome for a failure.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe condition was true.The condition wasn't evaluated: the rule comes after the match on a first-match engine, so it's neither matched nor unmatched.The condition was false.The run skipped the rule without evaluating its condition: the rule isdisabled, outside itsvalidity windowwhen the run started, or carries none of the tags the run wasgiven. -
Method Summary
Modifier and TypeMethodDescriptionstatic RuleEvaluation.OutcomeReturns the enum constant of this class with the specified name.static RuleEvaluation.Outcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MATCHED
The condition was true. On every engine, a matched rule is one that fired, unless the run failed. -
NOT_MATCHED
The condition was false. -
NOT_EVALUATED
The condition wasn't evaluated: the rule comes after the match on a first-match engine, so it's neither matched nor unmatched. -
SKIPPED
The run skipped the rule without evaluating its condition: the rule isdisabled, outside itsvalidity windowwhen the run started, or carries none of the tags the run wasgiven. A skipped rule is reported as skipped wherever it is in the list, including after the match on a first-match engine.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-