public interface NutValidator
Modifier and Type | Method and Description |
---|---|
Object |
check(Object val) |
int |
order()
返回本检查器的优先级,越小越优先检查
trim : 0
notNull : 1
minLength : 11
maxLength : 12
其他 : > 100
|
Object check(Object val) throws NutValidateException
val
- 待检测的值NutValidateException
- 出错后用这个异常汇报具体错误细节int order()
trim
: 0
notNull
: 1
minLength
: 11
maxLength
: 12
其他
: > 100
Copyright © 2020. All rights reserved.