public static enum Result.STATUS extends Enum<Result.STATUS>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CONFLICT |
CREATED |
FORBIDDEN |
NOT_FOUND |
OK |
SERVER_ERROR |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
int |
getStatus() |
boolean |
isErrorState() |
String |
toString() |
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 CREATED
public static final Result.STATUS ACCEPTED
public static final Result.STATUS CONFLICT
public static final Result.STATUS NOT_FOUND
public static final Result.STATUS BAD_REQUEST
public static final Result.STATUS UNAUTHORIZED
public static final Result.STATUS FORBIDDEN
public static final Result.STATUS SERVER_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 getStatus()
public String getDescription()
public boolean isErrorState()
public String toString()
toString
in class Enum<Result.STATUS>
Copyright © 2016. All rights reserved.