public enum StoppingConditionTriggeredBehavior extends Enum<StoppingConditionTriggeredBehavior> implements Enumeration
stopping condition
has been satisfied.
This allows the code handing the SatisfiedCallback
(get
/ set
)
event to control how or if propagation will continue.Enum Constant and Description |
---|
CONTINUE_AND_RESET_COUNTER
Continues propagation until the next time a
stopping condition
is triggered and it resets the iteration counter. |
CONTINUE_TO_NEXT_EVENT
Continues propagation until the next time a
stopping condition
is triggered. |
DEFAULT_BEHAVIOR
If this was the last event to be found by this condition then let propagation stop.
|
STOP_FUNCTION
Stops propagation of the function.
|
Modifier and Type | Method and Description |
---|---|
static StoppingConditionTriggeredBehavior |
getDefault()
Get the enum constant that is considered to be the default.
|
static StoppingConditionTriggeredBehavior |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static StoppingConditionTriggeredBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoppingConditionTriggeredBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoppingConditionTriggeredBehavior STOP_FUNCTION
public static final StoppingConditionTriggeredBehavior CONTINUE_TO_NEXT_EVENT
stopping condition
is triggered.public static final StoppingConditionTriggeredBehavior CONTINUE_AND_RESET_COUNTER
stopping condition
is triggered and it resets the iteration counter.public static final StoppingConditionTriggeredBehavior DEFAULT_BEHAVIOR
public static StoppingConditionTriggeredBehavior[] values()
for (StoppingConditionTriggeredBehavior c : StoppingConditionTriggeredBehavior.values()) System.out.println(c);
public static StoppingConditionTriggeredBehavior valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static StoppingConditionTriggeredBehavior getFromValue(int value)
value
- a numeric value.@Nonnull public static StoppingConditionTriggeredBehavior getDefault()