| Package | Description |
|---|---|
| cdc.util.validation | |
| cdc.util.validation.checkers | |
| cdc.util.validation.checkers.defaults |
| Modifier and Type | Method | Description |
|---|---|---|
Checker<? super T> |
ValidatorImpl.getChecker(Validity validity) |
| Modifier and Type | Method | Description |
|---|---|---|
static ValidatorImpl<?> |
ValidatorImpl.createUnchecked(Checker<?> error,
Checker<?> warning) |
| Constructor | Description |
|---|---|
ValidatorImpl(java.lang.Class<T> valueClass,
Checker<? super T> error,
Checker<? super T> warning) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
RawRefChecker |
|
class |
RefChecker<T> |
Checker that lazily delegates its task to a named checker.
|
| Modifier and Type | Method | Description |
|---|---|---|
default <S> Checker<S> |
Checker.after(Converter<S,? extends T> converter) |
Creates a checkers that checks that a value is convertible from a source type
to a target type, then matches a checker of the target type.
|
default <S> Checker<S> |
Checker.after(java.util.function.Function<S,? extends T> function,
java.lang.Class<S> sourceClass) |
Creates a checkers that checks that a value is convertible from a source type
to a target type, then matches a checker of the target type.
|
default Checker<?> |
Checker.afterRaw(Converter<?,?> converter) |
|
default Checker<T> |
Checker.and(Checker<? super T> other) |
Returns a checker that is the logical AND composition of this checker with another one.
|
default Checker<T> |
Checker.andRaw(Checker<?> other) |
|
default Checker<T> |
Checker.cast(Checker<?> other) |
|
default <V> Checker<V> |
Checker.cast(java.lang.Class<V> cls) |
|
static <S> Checker<S> |
Checker.fromConverter(Converter<S,?> converter) |
Creates a checker from a converter.
|
static <S,T> Checker<S> |
Checker.fromFunction(java.util.function.Function<S,?> function,
java.lang.Class<S> sourceClass,
java.lang.Class<T> targetClass) |
Creates a checker from a function.
|
(package private) static <S> Checker<S> |
CheckerSupport.fromFunctionUnchecked(java.util.function.Function<S,?> function,
java.lang.Class<S> sourceClass,
java.lang.Class<?> targetClass) |
|
static <T> Checker<? super T> |
Checkers.getChecker(java.lang.Class<T> valueClass,
java.lang.String name,
cdc.util.lang.FailureReaction reaction) |
|
static Checker<?> |
Checkers.getChecker(java.lang.String name) |
|
static Checker<?> |
Checkers.getChecker(java.lang.String name,
cdc.util.lang.FailureReaction reaction) |
|
Checker<?> |
RawRefChecker.getDelegate() |
|
Checker<? super T> |
RefChecker.getDelegate() |
|
Checker<?> |
CheckersIo.Loader.loadChecker(cdc.util.data.Element element) |
|
Checker<?> |
CheckersIo.Loader.loadChildChecker(cdc.util.data.Element parent) |
|
default Checker<T> |
Checker.negate() |
|
default Checker<T> |
Checker.or(Checker<? super T> other) |
Returns a checker that is the logical OR composition of this checker with another one.
|
default Checker<T> |
Checker.orRaw(Checker<?> other) |
| Modifier and Type | Method | Description |
|---|---|---|
default Checker<T> |
Checker.and(Checker<? super T> other) |
Returns a checker that is the logical AND composition of this checker with another one.
|
default Checker<T> |
Checker.andRaw(Checker<?> other) |
|
default Checker<T> |
Checker.cast(Checker<?> other) |
|
default Checker<T> |
Checker.or(Checker<? super T> other) |
Returns a checker that is the logical OR composition of this checker with another one.
|
default Checker<T> |
Checker.orRaw(Checker<?> other) |
|
static void |
Checkers.register(Checker<?> checker,
java.lang.String name) |
Register a checker with a name.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractStringChecker |
|
class |
HasNoDoubleSpaces |
|
class |
HasNoInnerSpaces |
|
class |
HasNoOuterSpaces |
|
class |
HasNoSpaces |
|
class |
IsConvertibleUsing<T> |
|
class |
IsExistingDirectory |
|
class |
IsExistingFile |
|
class |
IsGreaterOrEqual<T extends java.lang.Comparable<T>> |
|
class |
IsGreaterThan<T extends java.lang.Comparable<T>> |
|
class |
IsInRange<T extends java.lang.Comparable<T>> |
|
class |
IsInstanceOf |
|
class |
IsLessOrEqual<T extends java.lang.Comparable<T>> |
|
class |
IsLessThan<T extends java.lang.Comparable<T>> |
|
class |
IsNotNull |
|
class |
IsPattern |
|
class |
LengthIsInRange |
Check that the length of string is in a given range.
|
class |
MatchesPattern |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
ComparablesSupport.valueInfo(Checker<?> checker) |
Copyright © 2019. All rights reserved.