public enum ResponseType extends java.lang.Enum<ResponseType>
| Enum Constant and Description |
|---|
Error
Throw a random error
|
Exception
Throw a random exception
|
Exit
Exit the application
|
Hang
Hang the current thread
|
None
Do nothing (not always a valid option)
|
| Modifier and Type | Method and Description |
|---|---|
static ResponseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType None
public static final ResponseType Exit
public static final ResponseType Hang
public static final ResponseType Error
public static final ResponseType Exception
public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType 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 nullCopyright 2022 PreEmptive Solutions, LLC. All Rights Reserved.