public class BHiveMaxLengthValidatorForLong extends BHiveConstraintValidator<BHiveMaxLength,Long>
logger| Constructor and Description |
|---|
BHiveMaxLengthValidatorForLong() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(BHiveMaxLength constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(Long value,
javax.validation.ConstraintValidatorContext context)
Implement the validation logic.
|
public void initialize(BHiveMaxLength constraintAnnotation)
BHiveConstraintValidatorinitialize in interface javax.validation.ConstraintValidator<BHiveMaxLength,Long>initialize in class BHiveConstraintValidator<BHiveMaxLength,Long>constraintAnnotation - annotation instance for a given constraint declarationpublic boolean isValid(Long 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,Long>isValid in class BHiveConstraintValidator<BHiveMaxLength,Long>value - object to validatecontext - context in which the constraint is evaluatedvalue does not pass the constraintCopyright © 2018. All rights reserved.