public static enum Trigger.MergeResult extends Enum<Trigger.MergeResult>
TriggerResult enumerates the possible result a trigger can have when it is merged.| Enum Constant and Description |
|---|
ALREADY_FINISHED
A trigger can only return
ALREADY_FINISHED from onMerge, and it should only
be returned if the trigger was previously finished in at least one window. |
CONTINUE |
FIRE |
FIRE_AND_FINISH |
| Modifier and Type | Method and Description |
|---|---|
Trigger.TriggerResult |
getTriggerResult() |
boolean |
isFinish() |
boolean |
isFire() |
static Trigger.MergeResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Trigger.MergeResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Trigger.MergeResult FIRE
public static final Trigger.MergeResult CONTINUE
public static final Trigger.MergeResult FIRE_AND_FINISH
public static final Trigger.MergeResult ALREADY_FINISHED
ALREADY_FINISHED from onMerge, and it should only
be returned if the trigger was previously finished in at least one window.
Returning this indicates that the sub-trigger should be treated as finished in the output window.
public static Trigger.MergeResult[] values()
for (Trigger.MergeResult c : Trigger.MergeResult.values()) System.out.println(c);
public static Trigger.MergeResult 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 boolean isFire()
public boolean isFinish()
public Trigger.TriggerResult getTriggerResult()