public class NotNullConstraintValidator extends Object implements ConstraintValidator<NotNull,Object>
Description: Validate NotNull annotation on object value
| 构造器和说明 |
|---|
NotNullConstraintValidator() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
validate(Object value,
NotNull constraintAnnotation)
main method that invoke by
Validator
in ValidatorContext to validate parameter
under the A annotation. |
public boolean validate(Object value, NotNull constraintAnnotation)
ConstraintValidatorValidator
in ValidatorContext to validate parameter
under the A annotation.validate 在接口中 ConstraintValidator<NotNull,Object>value - parameter valueconstraintAnnotation - parameter annotationCopyright © 2020. All rights reserved.