Interface Validator<T>
- Type Parameters:
T-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generic validation service
- Author:
- mlopez, jgodoy
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Validator<T>forCondition(Predicate<T> predicate, Function<T, ErrorDescription> errorSupplier) static <T> ValidatorBuilder<T>on(ValidationKind... kinds) static List<ErrorDescription>success()
-
Method Details
-
success
-
validate
-
on
-
forCondition
static <T> Validator<T> forCondition(Predicate<T> predicate, Function<T, ErrorDescription> errorSupplier)
-