public static enum ApiStatus.Status extends Enum<ApiStatus.Status> implements HasCode<ApiStatus.Status>
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static ApiStatus.Status |
of(String code) |
static ApiStatus.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiStatus.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiStatus.Status OK
public static final ApiStatus.Status FAIL
public static ApiStatus.Status[] values()
for (ApiStatus.Status c : ApiStatus.Status.values()) System.out.println(c);
public static ApiStatus.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 String getCode()
getCode in interface HasCode<ApiStatus.Status>HasCode.getCode()public static ApiStatus.Status of(String code)
Copyright © 2018. All rights reserved.