public enum SensitiveEnum extends Enum<SensitiveEnum>
Enum Constant and Description |
---|
ID_CARD
身份证号
|
MOBILE_PHONE
手机号
|
NAME
真实姓名
|
PASSWORD
密码
|
Modifier and Type | Method and Description |
---|---|
static SensitiveEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensitiveEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensitiveEnum ID_CARD
public static final SensitiveEnum PASSWORD
public static final SensitiveEnum MOBILE_PHONE
public static final SensitiveEnum NAME
public static SensitiveEnum[] values()
for (SensitiveEnum c : SensitiveEnum.values()) System.out.println(c);
public static SensitiveEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.