public enum AccountState extends Enum<AccountState>
| Modifier and Type | Method and Description |
|---|---|
static AccountState[] |
getAllValues()
Gets all the values of this enum
|
static AccountState |
getFromIndex(short index)
Gets one state of this enum, or null, from a prettyName.
|
short |
getIndex()
Gets the state index.
|
String |
getPrettyName()
Gets the state pretty name.
|
static AccountState |
parse(String prettyName)
Gets one state of this enum, or null, from a prettyName.
|
static AccountState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccountState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountState ACTIVE
public static final AccountState BLOCKED
public static final AccountState LOCKED
public static final AccountState CLOSED
public static AccountState[] values()
for (AccountState c : AccountState.values()) System.out.println(c);
public static AccountState 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 getPrettyName()
public short getIndex()
public static final AccountState parse(String prettyName)
prettyName - The prettyName of the expected statepublic static final AccountState getFromIndex(short index)
index - The index of the expected statepublic static final AccountState[] getAllValues()