public static class Length.LengthValidator extends java.lang.Object implements javax.validation.ConstraintValidator<Length,java.lang.CharSequence>
ConstraintValidator
実装クラス。Constructor and Description |
---|
LengthValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Length constraintAnnotation) |
boolean |
isValid(java.lang.CharSequence value,
javax.validation.ConstraintValidatorContext context) |
public void initialize(Length constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<Length,java.lang.CharSequence>
public boolean isValid(java.lang.CharSequence value, javax.validation.ConstraintValidatorContext context)
isValid
in interface javax.validation.ConstraintValidator<Length,java.lang.CharSequence>