public static enum Account.Status extends java.lang.Enum<Account.Status>
Enum Constant and Description |
---|
OFFLINE
Account is offline or out of working hours.
|
ONLINE
Account is online
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static Account.Status |
getStatus(java.lang.String value)
Finds matching status value
|
java.lang.String |
getValue() |
static Account.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Account.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Account.Status ONLINE
public static final Account.Status OFFLINE
public static final Account.Status UNKNOWN
public static Account.Status[] values()
for (Account.Status c : Account.Status.values()) System.out.println(c);
public static Account.Status 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 getValue()
public static Account.Status getStatus(java.lang.String value)
value
- to match with connection status