public enum AccountState extends java.lang.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.
|
java.lang.String |
getPrettyName()
Gets the state pretty name.
|
static AccountState |
parse(java.lang.String prettyName)
Gets one state of this enum, or null, from a prettyName.
|
static AccountState |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getPrettyName()
public short getIndex()
public static final AccountState parse(java.lang.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()