Package io.inugami.api.functionnals
Interface ValidatorFunction<T,E extends Exception>
-
- 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 ValidatorFunction<T,E extends Exception>
Basically, the **ValidatorFunction** is designed to create a validation strategy. Your implementation should have a list of ValidatorFunction and execute all of them. If one of them throw an exception, you know that your input is not valid.- Since:
- 15 déc. 2017
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidate(T input)
-