Package com.hazelcast.config.properties
Interface ValueValidator<T extends java.lang.Comparable<T>>
-
- Type Parameters:
T
- type of the element to be tested
- 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 ValueValidator<T extends java.lang.Comparable<T>>
This interface defines a certain validation logic implementation to test if a given value is expected to be correct or not.All verification is done on property level which means that the configuration overall might still be invalid and needs to be checked by the provider vendor before actually using it.
All
ValueValidator
implementations need to be fully thread-safe and are recommended to be stateless to prevent any kind of unexpected concurrency issues.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validate(T value)
Validates the given value according to the defined validation logic and throws a ValidationException if configuration does not meet the requirements or logical errors are spotted.
-
-
-
Method Detail
-
validate
void validate(T value) throws ValidationException
Validates the given value according to the defined validation logic and throws a ValidationException if configuration does not meet the requirements or logical errors are spotted.- Parameters:
value
- the value to be tested- Throws:
ValidationException
- if validation failed
-
-