static <T> Validator<T> |
Validator.combine(Validator<T>... validators) |
Combines the given validators into a single Validator instance.
|
static <T> Validator<T> |
Validator.createEmptyValidator(String message) |
Factory method to create a validator, which checks if value exists.
|
static <T> Validator<T> |
Validator.createEmptyValidator(String message,
Severity severity) |
Factory method to create a validator, which checks if value exists.
|
static <T> Validator<T> |
Validator.createEqualsValidator(String message,
Collection<T> values) |
Factory method to create a validator, which checks if value exists in the provided collection.
|
static <T> Validator<T> |
Validator.createEqualsValidator(String message,
Severity severity,
Collection<T> values) |
Factory method to create a validator, which if value exists in the provided collection.
|
static <T> Validator<T> |
Validator.createPredicateValidator(Predicate<T> predicate,
String message) |
Factory method to create a validator, which evaluates the value validity with a given predicate.
|
static <T> Validator<T> |
Validator.createPredicateValidator(Predicate<T> predicate,
String message,
Severity severity) |
Factory method to create a validator, which evaluates the value validity with a given predicate.
|
static Validator<String> |
Validator.createRegexValidator(String message,
String regex,
Severity severity) |
Factory method to create a validator, which checks the value against a given regular expression.
|
static Validator<String> |
Validator.createRegexValidator(String message,
Pattern regex,
Severity severity) |
Factory method to create a validator, which checks the value against a given regular expression.
|