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