public class PlateNumberValidator extends Object implements javax.validation.ConstraintValidator<PlateNumber,String>
Constructor and Description |
---|
PlateNumberValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(PlateNumber constraintAnnotation) |
boolean |
isValid(String value,
javax.validation.ConstraintValidatorContext context) |
public void initialize(PlateNumber constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<PlateNumber,String>
public boolean isValid(String value, javax.validation.ConstraintValidatorContext context)
isValid
in interface javax.validation.ConstraintValidator<PlateNumber,String>
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.