|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.common.util.matcher.PatternMatcher
public class PatternMatcher
Created by ice on 14-12-30.
| 构造方法摘要 | |
|---|---|
PatternMatcher()
|
|
| 方法摘要 | |
|---|---|
static boolean |
compareDate(String date1,
String date2)
|
static boolean |
compareDate(String date1,
String date2,
String df)
|
static boolean |
isBirthDay(String value)
判断是否是生日 |
static boolean |
isBlank(Object value)
空值 |
static boolean |
isChinese(String value)
中文 |
static boolean |
isChinese(String value,
int min,
int max)
|
static boolean |
isDateTime(String value)
判断时间 |
static boolean |
isEmail(String value)
邮箱验证工具 |
static boolean |
isGeneral(String value)
|
static boolean |
isGeneral(String value,
int min,
int max)
|
static boolean |
isIdentityCard(String value)
身份证 |
static boolean |
isLength(String value,
int min,
int max)
|
static boolean |
isMobile(String value)
手机号码验证 |
static boolean |
isMoney(String value)
货币 |
static boolean |
isNotBlank(Object value)
|
static boolean |
isNumber(String value)
|
static boolean |
isNumber(String value,
int min,
int max)
|
static boolean |
isPhone(String value)
电话号码 包括移动电话和座机 |
static boolean |
isPositiveNumber(String value)
|
static boolean |
isPositiveNumber(String value,
int min,
int max)
|
static boolean |
isString(String value)
|
static boolean |
isString(String value,
int min,
int max)
|
static boolean |
isTel(String value)
座机验证 |
static boolean |
isUrl(String value)
匹配是否是链接 |
static boolean |
isUUID(String value)
|
static boolean |
isZipCode(String value)
邮政编码 |
static boolean |
match(String regex,
int flags,
String value)
区分大小写 |
static boolean |
match(String regex,
String value)
匹配正则表达式 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public PatternMatcher()
| 方法详细信息 |
|---|
public static boolean match(String regex,
String value)
regex - regexvalue - value
public static boolean match(String regex,
int flags,
String value)
regex - regexflags - flagsvalue - value
public static boolean isEmail(String value)
value - value
public static boolean isMobile(String value)
value - value
public static boolean isTel(String value)
value - value
public static boolean isPhone(String value)
value - value
public static boolean isGeneral(String value)
value - 输入内容限制为英文字母 、数字和下划线
public static boolean isGeneral(String value,
int min,
int max)
value - 输入内容限制为英文字母 、数字和下划线min - 最小长度max - 最大长度
public static boolean isBirthDay(String value)
value - value
public static boolean isIdentityCard(String value)
value - value
public static boolean isZipCode(String value)
value - value
public static boolean isMoney(String value)
value - value
public static boolean isNumber(String value)
value - 输入数字
public static boolean isNumber(String value,
int min,
int max)
value - 输入数字min - 最小长度max - 最大长度
public static boolean isPositiveNumber(String value)
value - 正整数
public static boolean isPositiveNumber(String value,
int min,
int max)
value - 正整数min - 最小长度max - 最大长度
public static boolean isChinese(String value)
value - value
public static boolean isChinese(String value,
int min,
int max)
public static boolean isString(String value)
value - 中文字、英文字母、数字和下划线
public static boolean isString(String value,
int min,
int max)
value - 中文字、英文字母、数字和下划线min - 最小长度max - 最大长度
public static boolean isUUID(String value)
value - UUID
public static boolean isUrl(String value)
value - value
public static boolean isDateTime(String value)
value - value
public static boolean isBlank(Object value)
value - 值
public static boolean isNotBlank(Object value)
public static boolean isLength(String value,
int min,
int max)
public static boolean compareDate(String date1,
String date2,
String df)
public static boolean compareDate(String date1,
String date2)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||