Package model.validation
Class BanExistsValidator
- java.lang.Object
-
- model.validation.BanExistsValidator
-
- All Implemented Interfaces:
ConstraintValidator<BanExists,Integer>
public class BanExistsValidator extends Object implements ConstraintValidator<BanExists,Integer>
-
-
Constructor Summary
Constructors Constructor Description BanExistsValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(BanExists constraintAnnotation)
boolean
isValid(Integer value, ConstraintValidatorContext context)
-
-
-
Constructor Detail
-
BanExistsValidator
public BanExistsValidator()
-
-
Method Detail
-
initialize
public void initialize(BanExists constraintAnnotation)
- Specified by:
initialize
in interfaceConstraintValidator<BanExists,Integer>
-
isValid
public boolean isValid(Integer value, ConstraintValidatorContext context)
- Specified by:
isValid
in interfaceConstraintValidator<BanExists,Integer>
-
-