- IDCardTools - Class in cn.cliveyuan.tools.common
-
身份证验证的工具(支持5位或18位省份证)
身份证号码结构:
17位数字和1位校验码:6位地址码数字,8位生日数字,3位出生时间顺序号,1位校验码。
地址码(前6位):表示对象常住户口所在县(市、镇、区)的行政区划代码,按GB/T2260的规定执行。
出生日期码,(第七位 至十四位):表示编码对象出生年、月、日,按GB按GB/T7408的规定执行,年、月、日代码之间不用分隔符。
顺序码(第十五位至十七位):表示在同一地址码所标示的区域范围内,对同年、同月、同日出生的人编订的顺序号,
顺序码的奇数分配给男性,偶数分配给女性。
校验码(第十八位数):
十七位数字本体码加权求和公式 s = sum(Ai*Wi), i = 0,,16,先对前17位数字的权求和;
Ai:表示第i位置上的身份证号码数字值.Wi:表示第i位置上的加权因.Wi: 7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2;
计算模 Y = mod(S, 11)
通过模得到对应的校验码 Y: 0 1 2 3 4 5 6 7 8 9 10 校验码: 1 0 X 9 8 7 6 5 4 3 2
- IdTools - Class in cn.cliveyuan.tools.common
-
ID生成工具
- invalidAddress() - Static method in exception cn.cliveyuan.tools.common.exception.EmailException
-
- invokeMethod(Method, Object, Object...) - Static method in class cn.cliveyuan.tools.common.ReflectTools
-
- isAge(int) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配年龄
- isAssignable(Class<?>, Class<?>) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that superType.isAssignableFrom(subType) is true.
- isAssignable(Class<?>, Class<?>, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that superType.isAssignableFrom(subType) is true.
- isBankCardNo(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
验证银行卡
15-19位数字
- isChinese(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配汉字
- isChineseChar(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
判断中文字符(包括汉字和符号)
- isDigits(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配正整数
- isEmail(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配Email地址
- isEmpty(Map) - Static method in class cn.cliveyuan.tools.common.MapTools
-
map是否为空
- isFalse(boolean, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert a boolean expression, throwing IllegalArgumentException if
the test result is true.
- isFloat(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配正浮点数
- isHasErrors() - Method in class cn.cliveyuan.tools.common.bean.ValidationResult
-
- isIdCardNo(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
身份证号码验证
- isInstanceOf(Class<?>, Object) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class<?>, Object, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that the provided object is an instance of the provided class.
- isIp(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
- isLetter(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
判断英文字母(a-zA-Z)
- isLinuxOs() - Static method in class cn.cliveyuan.tools.common.SystemTools
-
是否为Linux操作系统
- isMacOs() - Static method in class cn.cliveyuan.tools.common.SystemTools
-
是否为苹果操作系统
- isMobile(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
手机号校验
- isName(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配姓名
- isNotEmpty(Map) - Static method in class cn.cliveyuan.tools.common.MapTools
-
map是否不为空
- isNull(Object, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an object is null .
- isNull(Object) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an object is null .
- isNumeric(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配数值类型,包括整数和浮点数
- isTrue(boolean, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert a boolean expression, throwing IllegalArgumentException if
the test result is false.
- isTrue(boolean) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert a boolean expression, throwing IllegalArgumentException if
the test result is false.
- isUrl(String) - Static method in class cn.cliveyuan.tools.common.ValidateTools
-
匹配URL地址
- isWindowsOs() - Static method in class cn.cliveyuan.tools.common.SystemTools
-
是否为Windows操作系统
- newInstance(Class<?>) - Static method in class cn.cliveyuan.tools.common.ReflectTools
-
初始化
- nextId() - Method in class cn.cliveyuan.tools.common.inner.SnowflakeIdWorker
-
获得下一个ID (该方法是线程安全的)
- noNullElements(Object[], String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an array has no null elements.
- noNullElements(Object[]) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an array has no null elements.
- notAllNull(String, Object...) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
断言不都为空
- notBlank(String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
- notBlank(String, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
字符串不能为空(包括空格)
- notEmpty(Object[], String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an array has elements; that is, it must not be null
and must have at least one element.
- notEmpty(Object[]) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an array has elements; that is, it must not be null
and must have at least one element.
- notEmpty(Collection<?>, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Collection<?>) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Map<?, ?>, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that a Map has entries; that is, it must not be null and
must have at least one entry.
- notEmpty(Map<?, ?>) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that a Map has entries; that is, it must not be null and
must have at least one entry.
- notEmpty(String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
- notEmpty(String, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
字符串不能为空
- notNull(Object, String) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an object is not null .
- notNull(Object) - Static method in class cn.cliveyuan.tools.common.AssertTools
-
Assert that an object is not null .
- now() - Static method in class cn.cliveyuan.tools.common.DateTimeTools
-
当前时间
- nowLocalDateTime() - Static method in class cn.cliveyuan.tools.common.DateTimeTools
-
当前本地时间
- nowMillis() - Static method in class cn.cliveyuan.tools.common.DateTimeTools
-
当前时间的毫秒
- nowSeconds() - Static method in class cn.cliveyuan.tools.common.DateTimeTools
-
当前时间的秒