public class CustomValidator<T> extends Object
Modifier and Type | Method and Description |
---|---|
static <E> CustomValidator<E> |
forPredicate(Predicate<E> callback,
String errorMessage) |
ValidationResult |
validate(T input) |
public static <E> CustomValidator<E> forPredicate(Predicate<E> callback, String errorMessage)
public ValidationResult validate(T input)
Copyright © 2017. All rights reserved.