public class ConstKit extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ConstKit.MemoryUnit |
static class |
ConstKit.TimeUnit |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DAY
天与毫秒的倍数
|
static int |
GB
GB与Byte的倍数
|
static int |
HOUR
时与毫秒的倍数
|
static int |
KB
KB与Byte的倍数
|
static int |
MB
MB与Byte的倍数
|
static int |
MIN
分与毫秒的倍数
|
static String |
REGEX_BLANK_LINE
正则:空白行
|
static String |
REGEX_DATE
正则:yyyy-MM-dd格式的日期校验,已考虑平闰年
|
static String |
REGEX_DOUBLE_BYTE_CHAR
正则:双字节字符(包括汉字在内)
|
static String |
REGEX_EMAIL
正则:邮箱
|
static String |
REGEX_ID_CARD15
正则:身份证号码15位
|
static String |
REGEX_ID_CARD18
正则:身份证号码18位
|
static String |
REGEX_INTEGER
正则:整数
|
static String |
REGEX_IP
正则:IP地址
|
static String |
REGEX_MOBILE_EXACT
正则:手机号(精确)
移动:134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188
联通:130、131、132、145、155、156、175、176、185、186
电信:133、153、173、177、180、181、189
全球星:1349
虚拟运营商:170
|
static String |
REGEX_MOBILE_SIMPLE
正则:手机号(简单)
|
static String |
REGEX_NEGATIVE_FLOAT
正则:负浮点数
|
static String |
REGEX_NEGATIVE_INTEGER
正则:负整数
|
static String |
REGEX_NOT_NEGATIVE_INTEGER
正则:非负整数(正整数 + 0)
|
static String |
REGEX_NOT_POSITIVE_INTEGER
正则:非正整数(负整数 + 0)
|
static String |
REGEX_POSITIVE_FLOAT
正则:正浮点数
|
static String |
REGEX_POSITIVE_INTEGER
正则:正整数
|
static String |
REGEX_TEL
正则:电话号码
|
static String |
REGEX_TENCENT_NUM
正则:QQ号
|
static String |
REGEX_URL
正则:URL
|
static String |
REGEX_USERNAME
正则:用户名,取值范围为a-z,A-Z,0-9,"_",汉字,不能以"_"结尾,用户名必须是6-20位
|
static String |
REGEX_ZH
正则:汉字
|
static String |
REGEX_ZIP_CODE
正则:中国邮政编码
|
static int |
SEC
秒与毫秒的倍数
|
public static final int KB
public static final int MB
public static final int GB
public static final int SEC
public static final int MIN
public static final int HOUR
public static final int DAY
public static final String REGEX_MOBILE_EXACT
移动:134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188
联通:130、131、132、145、155、156、175、176、185、186
电信:133、153、173、177、180、181、189
全球星:1349
虚拟运营商:170
public static final String REGEX_USERNAME
public static final String REGEX_DOUBLE_BYTE_CHAR
public static final String REGEX_NOT_NEGATIVE_INTEGER
public static final String REGEX_NOT_POSITIVE_INTEGER
Copyright © 2017. All rights reserved.