public enum AccountStatus extends Enum<AccountStatus> implements Serializable
| 枚举常量和说明 |
|---|
FREEZE
Freeze object status.
|
NORMAL
Normal object status.
|
RECOVERING
Recovering object status.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static AccountStatus |
forNumber(int value)
For number object status.
|
int |
getValue()
Gets value.
|
static AccountStatus |
valueOf(int value)
Value of object status.
|
static AccountStatus |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static AccountStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final AccountStatus NORMAL
public static final AccountStatus FREEZE
public static final AccountStatus RECOVERING
public static AccountStatus[] values()
for (AccountStatus c : AccountStatus.values()) System.out.println(c);
public static AccountStatus valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static AccountStatus valueOf(int value)
value - the valuepublic static AccountStatus forNumber(int value)
value - the valuepublic int getValue()
Copyright © 2022. All rights reserved.