public static enum Result.Status extends Enum<Result.Status>
Enum Constant and Description |
---|
ERROR
Indicates that an error occurred while processing the command.
|
OK
Indicates that the command completed successfully.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns the code associated with this state.
|
static Result.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Result.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Result.Status OK
public static final Result.Status ERROR
public static Result.Status[] values()
for (Result.Status c : Result.Status.values()) System.out.println(c);
public static Result.Status 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 getCode()