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