-
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ValidationResultvalidate(List<ValidationSummarizer> validators)Has to execute the giveninstructionsand 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:ValidationRunners.VALIDATE_ALL- Executes all instructionsValidationRunners.VALIDATE_STOP_ON_FIRST_FAIL- Executes the instructions and stops if one instruction failed
-
-
-
Method Detail
-
validate
@NotNull @NotNull ValidationResult validate(List<ValidationSummarizer> validators)
Has to execute the giveninstructionsand 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:ValidationRunners.VALIDATE_ALL- Executes all instructionsValidationRunners.VALIDATE_STOP_ON_FIRST_FAIL- Executes the instructions and stops if one instruction failed
- 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
-
-