Interface Validator<T>
- Type Parameters:
T- The type of values to validate.
- All Known Implementing Classes:
IndexAliasDefinitionValidator,IndexSettingsValidator,NamedDynamicTemplateListValidator,RootTypeMappingValidator
public interface Validator<T>
A component responsible for checking that an expected and actual value are identical.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(ValidationErrorCollector errorCollector, T expected, T actual) default voidvalidateAllIgnoreUnexpected(ValidationErrorCollector errorCollector, ValidationContextType type, String messageIfMissing, Map<String, ? extends T> expectedMap, Map<String, ? extends T> actualMap) default voidvalidateAllIncludingUnexpected(ValidationErrorCollector errorCollector, ValidationContextType type, Map<String, ? extends T> expectedMap, Map<String, ? extends T> actualMap)
-
Method Details
-
validate
-
validateAllIgnoreUnexpected
default void validateAllIgnoreUnexpected(ValidationErrorCollector errorCollector, ValidationContextType type, String messageIfMissing, Map<String, ? extends T> expectedMap, Map<String, ? extends T> actualMap) -
validateAllIncludingUnexpected
default void validateAllIncludingUnexpected(ValidationErrorCollector errorCollector, ValidationContextType type, Map<String, ? extends T> expectedMap, Map<String, ? extends T> actualMap)
-