Interface Validator
-
- All Known Implementing Classes:
Jsr380Validator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Validator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> TassertValid(T object, Class<?>... groups)<T> Optional<ValidationException>checkValidity(T object, Class<?>... groups)default booleanisValid(Object object, Class<?>... groups)
-
-
-
Method Detail
-
checkValidity
<T> Optional<ValidationException> checkValidity(T object, Class<?>... groups)
-
assertValid
default <T> T assertValid(T object, Class<?>... groups) throws ValidationException- Throws:
ValidationException
-
-