public enum CodeTypeEnum extends Enum<CodeTypeEnum>
| 枚举常量和说明 |
|---|
CHANGE_PWD |
REGISTER |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getMsg() |
int |
getValue() |
static CodeTypeEnum |
of(int type) |
void |
setMsg(String msg) |
void |
setValue(int value) |
static CodeTypeEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CodeTypeEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CodeTypeEnum REGISTER
public static final CodeTypeEnum CHANGE_PWD
public static CodeTypeEnum[] values()
for (CodeTypeEnum c : CodeTypeEnum.values()) System.out.println(c);
public static CodeTypeEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static CodeTypeEnum of(int type)
public int getValue()
public void setValue(int value)
public String getMsg()
public void setMsg(String msg)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.