public enum RegexType extends Enum<RegexType>
| Enum Constant and Description |
|---|
EMAIL
邮箱
|
FIELD
标志符字段
|
ID_CARD
身份证
|
MOBILE
手机号 开源地址
|
POSTAL
邮政编码
|
| Modifier and Type | Field and Description |
|---|---|
private String |
msg
消息
|
private String |
regexp
正则表达式
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMsg() |
String |
getRegexp() |
static RegexType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RegexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegexType EMAIL
public static final RegexType ID_CARD
public static final RegexType POSTAL
public static final RegexType FIELD
public static RegexType[] values()
for (RegexType c : RegexType.values()) System.out.println(c);
public static RegexType 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 nullpublic String getMsg()
public String getRegexp()
Copyright © 2024. All rights reserved.