public enum ResponseType extends java.lang.Enum<ResponseType>
| Enum Constant and Description |
|---|
CLIENT_ERROR |
COMPILE_ERROR |
RUNTIME_ERROR |
SERVER_INFO |
SUCCESS_ATOM |
SUCCESS_PARTIAL |
SUCCESS_SEQUENCE |
WAIT_COMPLETE |
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static ResponseType |
fromValue(int value) |
boolean |
isError() |
static @Nullable ResponseType |
maybeFromValue(int value) |
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 SUCCESS_ATOM
public static final ResponseType SUCCESS_SEQUENCE
public static final ResponseType SUCCESS_PARTIAL
public static final ResponseType WAIT_COMPLETE
public static final ResponseType SERVER_INFO
public static final ResponseType CLIENT_ERROR
public static final ResponseType COMPILE_ERROR
public static final ResponseType RUNTIME_ERROR
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 nullpublic static ResponseType fromValue(int value)
@Nullable public static @Nullable ResponseType maybeFromValue(int value)
public boolean isError()