public interface Validator<T>
Modifier and Type | Method and Description |
---|---|
void |
validate(T value)
Method used to validate if the value is valid.
|
void validate(T value) throws ValidationException
value
- object to be validatedValidationException
- if value is not valid.