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