public enum ApiCode extends Enum<ApiCode>
| Enum Constant and Description |
|---|
BAD_REQUEST |
FORBIDDEN |
INTERNAL_ERROR |
OK |
UNAUTHORISED |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getDesc() |
void |
setCode(int code) |
void |
setDesc(String desc) |
static ApiCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiCode OK
public static final ApiCode BAD_REQUEST
public static final ApiCode UNAUTHORISED
public static final ApiCode FORBIDDEN
public static final ApiCode INTERNAL_ERROR
public static ApiCode[] values()
for (ApiCode c : ApiCode.values()) System.out.println(c);
public static ApiCode 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()
public void setCode(int code)
public String getDesc()
public void setDesc(String desc)
Copyright © 2020. All rights reserved.