public enum FailureStrategy extends java.lang.Enum<FailureStrategy>
Enum Constant and Description |
---|
ASK_USER
Ask the user whether to continue or to quit.
|
ASK_USER_RETRY
Ask the user whether to continue, to retry or to quit.
|
CONTINUE
Continue after a failure.
|
QUIT
Quit after a failure.
|
RETURN_TO_SCREEN
No further actions will be executed and the previous screen will be displayed again.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Convert to an int value.
|
static FailureStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailureStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailureStrategy CONTINUE
public static final FailureStrategy QUIT
public static final FailureStrategy ASK_USER
public static final FailureStrategy ASK_USER_RETRY
public static final FailureStrategy RETURN_TO_SCREEN
public static FailureStrategy[] values()
for (FailureStrategy c : FailureStrategy.values()) System.out.println(c);
public static FailureStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()