Interface ValidationRunner

  • 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 ValidationRunner
    Author:
    mlo
    • Method Detail

      • validate

        @NotNull
        @NotNull ValidationResult validate​(List<ValidationSummarizer> validators)
        Has to execute the given instructions and has to aggregate the all results to one.
        It is up to the runner, how to execute the instructions and when the process stops.

        Predefined runners:
        Parameters:
        validators - A list of instructions which has to be executed. The list contains the instruction in the order they have been added
        Returns:
        An aggregated result of the given instructions