Interface ValueValidator<T>
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ValueValidator<T> and(ValueValidator<? super T> other) static <V> ValueValidator<V> none()static <V> ValueValidator<V> nonnull()static <V> ValueValidator<V> static <V extends Number>
ValueValidator<V> range(V min, V max) static <V extends Number>
ValueValidator<V> voidvalidate(@NotNull ConfigurationHolder<?> holder, T value)
-
Method Details
-
validate
- Throws:
Exception
-
and
-
none
-
nonnull
-
nonnull
-
range
-
range
-