public static interface Validates.TestValidator
Modifier and Type | Method and Description |
---|---|
static Validates.TestValidator |
create(ExceptionComposer.ForValidate exceptionComposerForValidate) |
ExceptionComposer.ForValidate |
exceptionComposerForValidate() |
default <T> T |
validate(T value,
Predicate<? super T> cond) |
default <T,E extends RuntimeException> |
validate(T value,
Predicate<? super T> cond,
Function<String,E> exceptionFactory) |
default <T> T |
validateArgument(T value,
Predicate<? super T> cond) |
default <T> T |
validateNonNull(T value) |
default <T> T |
validateState(T value,
Predicate<? super T> cond) |
ExceptionComposer.ForValidate exceptionComposerForValidate()
default <T> T validate(T value, Predicate<? super T> cond)
default <T,E extends RuntimeException> T validate(T value, Predicate<? super T> cond, Function<String,E> exceptionFactory)
default <T> T validateNonNull(T value)
default <T> T validateArgument(T value, Predicate<? super T> cond)
default <T> T validateState(T value, Predicate<? super T> cond)
static Validates.TestValidator create(ExceptionComposer.ForValidate exceptionComposerForValidate)
Copyright © 2024. All rights reserved.