public enum AccountStatus extends java.lang.Enum<AccountStatus>
| Enum Constant and Description |
|---|
Active
Account is active
|
Expired
Account is disabled due to inactivity
|
Locked
Account is locked due to admin action
|
| Modifier and Type | Method and Description |
|---|---|
static AccountStatus |
fromStatusCode(char code)
Get AccountStatus from status code.
|
char |
getStatusCode()
Get the status code.
|
static AccountStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountStatus Active
public static final AccountStatus Expired
public static final AccountStatus Locked
public static AccountStatus[] values()
for (AccountStatus c : AccountStatus.values()) System.out.println(c);
public static AccountStatus 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 char getStatusCode()
public static AccountStatus fromStatusCode(char code)
code -