public class Validator extends Object
Constructor and Description |
---|
Validator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isIpv4(String value)
验证是否为IPV4地址
|
static boolean |
isMactchRegex(Pattern pattern,
String value)
通过正则表达式验证
|
static boolean |
isNumber(String str)
是否为数字
|
public static boolean isMactchRegex(Pattern pattern, String value)
pattern
- 正则模式value
- 值public static boolean isIpv4(String value)
value
- 值public static boolean isNumber(String str)
str
- 字符串值Copyright © 2021. All rights reserved.