public enum ResponseCodes extends Enum<ResponseCodes>
| Enum Constant and Description |
|---|
CREATE_SUCCESS_200 |
CREATE_SUCCESS_201 |
DELETE_SUCCESS_200 |
DELETE_SUCCESS_204 |
GET_SUCCESS_200 |
NO_CONTENT_204 |
UPDATE_SUCCESS_200 |
UPDATE_SUCCESS_204 |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
int |
value() |
static ResponseCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCodes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCodes GET_SUCCESS_200
public static final ResponseCodes CREATE_SUCCESS_200
public static final ResponseCodes CREATE_SUCCESS_201
public static final ResponseCodes UPDATE_SUCCESS_204
public static final ResponseCodes UPDATE_SUCCESS_200
public static final ResponseCodes DELETE_SUCCESS_200
public static final ResponseCodes DELETE_SUCCESS_204
public static final ResponseCodes NO_CONTENT_204
public static ResponseCodes[] values()
for (ResponseCodes c : ResponseCodes.values()) System.out.println(c);
public static ResponseCodes 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 value()
public String toString()
toString in class Enum<ResponseCodes>Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.