public class BHiveMaxLengthValidatorForInteger extends BHiveConstraintValidator<BHiveMaxLength,Integer>
logger| Constructor and Description |
|---|
BHiveMaxLengthValidatorForInteger() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(BHiveMaxLength constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(Integer value,
javax.validation.ConstraintValidatorContext context)
Implement the validation logic.
|
public void initialize(BHiveMaxLength constraintAnnotation)
BHiveConstraintValidatorinitialize in interface javax.validation.ConstraintValidator<BHiveMaxLength,Integer>initialize in class BHiveConstraintValidator<BHiveMaxLength,Integer>constraintAnnotation - annotation instance for a given constraint declarationpublic boolean isValid(Integer value, javax.validation.ConstraintValidatorContext context)
BHiveConstraintValidatorvalue must not be altered.
This method can be accessed concurrently, thread-safety must be ensured
by the implementation.isValid in interface javax.validation.ConstraintValidator<BHiveMaxLength,Integer>isValid in class BHiveConstraintValidator<BHiveMaxLength,Integer>value - object to validatecontext - context in which the constraint is evaluatedvalue does not pass the constraintCopyright © 2018. All rights reserved.