-
-
Method Summary
Modifier and Type Method Description static Stream<ValidationException>check(boolean test, String message)static Stream<ValidationException>check(boolean test, Supplier<String> message)static <T> Validator<T>validate(Predicate<T> predicate, String message)TODO. static <T> Validator<T>validate(Predicate<T> predicate, Function<T, String> message)TODO. static <T, V> Validator<T>validate(Function<T, V> property, Predicate<V> predicate, Function<T, String> message)static <T> Validator<T>validateNonNull(Predicate<T> predicate, String message)TODO. static <T, V> Validator<T>validateNonNull(Function<T, V> property, Predicate<V> predicate, Function<T, String> message)TODO. static <T, V> Validator<T>validateNonNull(Function<T, V> property, Predicate<V> predicate, String message)TODO. static <T, V> Validator<T>validateNonNull(Function<T, V> property, String message)TODO. static <T> Validator<T>validateNonEmpty(Function<T, String> property, Function<T, String> message, Validator<String> validator)TODO. static <T> Validator<T>validateNonEmpty(Function<T, String> property, String message, Validator<String> validator)TODO. static <T, V extends Collection<out Object>> Validator<T>validateNonEmpty(Function<T, V> property, String message)TODO. static <T, V extends Collection<out Object>> Validator<T>validateNonEmpty(Function<T, V> property, Function<T, String> message)TODO. static <T> Validator<T>validateOrNull(Predicate<T> predicate, String message)TODO. static <T, V> Validator<T>validateOrNull(Function<T, V> property, Predicate<V> predicate, String message)TODO. Validator<T>and(Validator<T> other)TODO. <R> Validator<T>and(Validator<R> other, Function<T, R> toOther)TODO. static booleanmatches(String str, Pattern pattern)static Predicate<String>matches(Pattern pattern)static Stream<ValidationException>raise(String message)static Stream<ValidationException>raise(String message, Exception ex)static Stream<ValidationException>valid()-
-
Method Detail
-
check
static Stream<ValidationException> check(boolean test, String message)
-
check
static Stream<ValidationException> check(boolean test, Supplier<String> message)
-
validate
static <T> Validator<T> validate(Predicate<T> predicate, String message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validate
static <T> Validator<T> validate(Predicate<T> predicate, Function<T, String> message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validate
static <T, V> Validator<T> validate(Function<T, V> property, Predicate<V> predicate, Function<T, String> message)
-
validateNonNull
static <T> Validator<T> validateNonNull(Predicate<T> predicate, String message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validateNonNull
static <T, V> Validator<T> validateNonNull(Function<T, V> property, Predicate<V> predicate, Function<T, String> message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validateNonNull
static <T, V> Validator<T> validateNonNull(Function<T, V> property, Predicate<V> predicate, String message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validateNonNull
static <T, V> Validator<T> validateNonNull(Function<T, V> property, String message)
TODO.
- Parameters:
message- TODO
-
validateNonEmpty
static <T> Validator<T> validateNonEmpty(Function<T, String> property, Function<T, String> message, Validator<String> validator)
TODO.
- Parameters:
message- TODO
-
validateNonEmpty
static <T> Validator<T> validateNonEmpty(Function<T, String> property, String message, Validator<String> validator)
TODO.
- Parameters:
message- TODO
-
validateNonEmpty
static <T, V extends Collection<out Object>> Validator<T> validateNonEmpty(Function<T, V> property, String message)
TODO.
- Parameters:
message- TODO
-
validateNonEmpty
static <T, V extends Collection<out Object>> Validator<T> validateNonEmpty(Function<T, V> property, Function<T, String> message)
TODO.
- Parameters:
message- TODO
-
validateOrNull
static <T> Validator<T> validateOrNull(Predicate<T> predicate, String message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
validateOrNull
static <T, V> Validator<T> validateOrNull(Function<T, V> property, Predicate<V> predicate, String message)
TODO.
- Parameters:
predicate- TODOmessage- TODO
-
raise
static Stream<ValidationException> raise(String message)
-
raise
static Stream<ValidationException> raise(String message, Exception ex)
-
valid
static Stream<ValidationException> valid()
-
-
-
-