public class CachingValidator extends Object
Constructor and Description |
---|
CachingValidator() |
Modifier and Type | Method and Description |
---|---|
<T> Optional<String> |
validate(T obj)
Validate a given object.
|
public <T> Optional<String> validate(T obj) throws BadValidationAnnotation
obj
- Object to be validatedBadValidationAnnotation
- if the validation annotations are incorrect or unsupported