public enum MaskingType extends Enum<MaskingType>
| Enum Constant and Description |
|---|
ADDRESS
地址
|
BANK_CARD
银行卡
|
CAR_LICENSE
中国大陆车牌,包含普通车辆、新能源车辆
|
CHINESE_NAME
中文名
|
CLEAR_TO_EMPTY
清空为""
|
CLEAR_TO_NULL
清空为null
|
EMAIL
电子邮件
|
FIRST_MASK
定义了一个first_mask的规则,只显示第一个字符。
|
FIXED_PHONE
座机号
|
ID_CARD
身份证号
|
IPV4
IPv4地址
|
IPV6
IPv6地址
|
MOBILE_PHONE
手机号
|
PASSWORD
密码
|
USER_ID
用户id
|
| Modifier and Type | Method and Description |
|---|---|
static MaskingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaskingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaskingType USER_ID
public static final MaskingType CHINESE_NAME
public static final MaskingType ID_CARD
public static final MaskingType FIXED_PHONE
public static final MaskingType MOBILE_PHONE
public static final MaskingType ADDRESS
public static final MaskingType EMAIL
public static final MaskingType PASSWORD
public static final MaskingType CAR_LICENSE
public static final MaskingType BANK_CARD
public static final MaskingType IPV4
public static final MaskingType IPV6
public static final MaskingType FIRST_MASK
public static final MaskingType CLEAR_TO_NULL
public static final MaskingType CLEAR_TO_EMPTY
public static MaskingType[] values()
for (MaskingType c : MaskingType.values()) System.out.println(c);
public static MaskingType 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 © 2025. All rights reserved.