public enum AccountStatus extends java.lang.Enum<AccountStatus>
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
java.lang.String |
getDescription() |
java.lang.String |
getDescription(int 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 DEFINED
public static final AccountStatus BLOCKED
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 int getCode()
public java.lang.String getDescription()
public java.lang.String getDescription(int code)