public enum ResponseCode extends Enum<ResponseCode>
| Enum Constant and Description |
|---|
DM_ACCEPTED |
DM_BAD_REQUEST |
DM_FUNCTION_NOT_IMPLEMENTED |
DM_INTERNAL_ERROR |
DM_NOT_FOUND |
DM_SUCCESS |
DM_UPDATE_SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode DM_SUCCESS
public static final ResponseCode DM_ACCEPTED
public static final ResponseCode DM_UPDATE_SUCCESS
public static final ResponseCode DM_BAD_REQUEST
public static final ResponseCode DM_NOT_FOUND
public static final ResponseCode DM_INTERNAL_ERROR
public static final ResponseCode DM_FUNCTION_NOT_IMPLEMENTED
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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()
Copyright © 2019. All rights reserved.