| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static interface | |
| public static class | Validator.
Thrown to indicate that the given value didn't pass validation. |
| public static class | Validator.
Thrown to indicate an error in the normal execution of a validator. |
| Modifier and Type | Method and Description |
|---|---|
| public default Validator | |
| public static <T, U extends Exception> Validator | |
| public default Validator | |
| public static <T, U extends Exception> Validator | |
| public static <T, U extends Exception> Validator. | |
| public default Validator | |
| public static <T, U extends Exception> Validator | |
| public List | Returns: the list of validation errorsthe name of an option to validate optionName, Validator.the value of an option to validate optionValueValidates the given option value. |
| andGreedy | back to summary |
|---|---|
| public default Validator | |
| andGreedy | back to summary |
|---|---|
public static <T, U extends Exception> Validator
| |
| andLazy | back to summary |
|---|---|
| public default Validator | |
| andLazy | back to summary |
|---|---|
public static <T, U extends Exception> Validator
| |
| build | back to summary |
|---|---|
| public static <T, U extends Exception> Validator. | |
| or | back to summary |
|---|---|
| public default Validator | |
| or | back to summary |
|---|---|
public static <T, U extends Exception> Validator
| |
| validate | back to summary |
|---|---|
| public List Validates the given option value.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Consumer | |
| private OptionValueExceptionFactory | |
| private String | |
| private Predicate |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Validator. | |
| pack-priv Optional | |
| pack-priv Validator. | |
| pack-priv Validator | |
| pack-priv Validator. | |
| pack-priv Optional | |
| pack-priv Validator. | |
| pack-priv Optional | |
| pack-priv boolean | |
| pack-priv Validator. | |
| pack-priv Validator. | |
| pack-priv Optional |
| consumer | back to summary |
|---|---|
| private Consumer<T> consumer | |
| exceptionFactory | back to summary |
|---|---|
| private OptionValueExceptionFactory<? extends U> exceptionFactory | |
| formatString | back to summary |
|---|---|
| private String formatString | |
| predicate | back to summary |
|---|---|
| private Predicate<T> predicate | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| Builder | back to summary |
|---|---|
| pack-priv Builder(Validator. | |
| consumer | back to summary |
|---|---|
| pack-priv Validator. | |
| consumer | back to summary |
|---|---|
| pack-priv Optional | |
| copy | back to summary |
|---|---|
| pack-priv Validator. | |
| create | back to summary |
|---|---|
| pack-priv Validator | |
| exceptionFactory | back to summary |
|---|---|
| pack-priv Validator. | |
| exceptionFactory | back to summary |
|---|---|
| pack-priv Optional | |
| formatString | back to summary |
|---|---|
| pack-priv Validator. | |
| formatString | back to summary |
|---|---|
| pack-priv Optional | |
| hasValidatingMethod | back to summary |
|---|---|
| pack-priv boolean hasValidatingMethod() | |
| mutate | back to summary |
|---|---|
| pack-priv Validator. | |
| predicate | back to summary |
|---|---|
| pack-priv Validator. | |
| predicate | back to summary |
|---|---|
| pack-priv Optional | |
| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static record |
| Access | Constructor and Description |
|---|---|
| private |
| Details | back to summary |
|---|---|
| private Details() | |
| Modifier and Type | Field and Description |
|---|---|
| private final StringToken | sourceToken
Record Component accessed by sourceToken(). |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public StringToken | sourceToken()
Record Component getter of sourceToken. Implements jdk.
|
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public T | value()
Record Component getter of value. Implements jdk.
|
| sourceToken | back to summary |
|---|---|
| private final StringToken sourceToken Record Component accessed by sourceToken(). | |
| value | back to summary |
|---|---|
| private final T value Record Component accessed by value(). | |
| DefaultParsedValue | back to summary |
|---|---|
| pack-priv DefaultParsedValue(T value, StringToken sourceToken) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| sourceToken | back to summary |
|---|---|
| public StringToken sourceToken() Record Component getter of sourceToken. Implements jdk. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| value | back to summary |
|---|---|
| public T value() Record Component getter of value. Implements jdk. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | consumer
Record Component accessed by consumer(). |
| private final OptionValueExceptionFactory | exceptionFactory
Record Component accessed by exceptionFactory(). |
| private final String | formatString
Record Component accessed by formatString(). |
| private final Optional | predicate
Record Component accessed by predicate(). |
| Access | Constructor and Description |
|---|---|
| pack-priv | ScalarValidator(Optional<Predicate<T>> predicate, Optional<Consumer<T>> consumer, String formatString, OptionValueExceptionFactory<? extends U> exceptionFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public OptionValueExceptionFactory | |
| public String | |
| private List | |
| public final int | |
| public Optional | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public List | validate(OptionName optionName, Validator.
Implements jdk. Validates the given option value. |
| consumer | back to summary |
|---|---|
| private final Optional<Consumer<T>> consumer Record Component accessed by consumer(). | |
| exceptionFactory | back to summary |
|---|---|
| private final OptionValueExceptionFactory<? extends U> exceptionFactory Record Component accessed by exceptionFactory(). | |
| formatString | back to summary |
|---|---|
| private final String formatString Record Component accessed by formatString(). | |
| predicate | back to summary |
|---|---|
| private final Optional<Predicate<T>> predicate Record Component accessed by predicate(). | |
| ScalarValidator | back to summary |
|---|---|
| pack-priv ScalarValidator(Optional<Predicate<T>> predicate, Optional<Consumer<T>> consumer, String formatString, OptionValueExceptionFactory<? extends U> exceptionFactory) | |
| consumer | back to summary |
|---|---|
| public Optional Record Component getter of consumer. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| exceptionFactory | back to summary |
|---|---|
| public OptionValueExceptionFactory Record Component getter of exceptionFactory. | |
| formatString | back to summary |
|---|---|
| public String formatString() Record Component getter of formatString. | |
| handleException | back to summary |
|---|---|
| private List | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| predicate | back to summary |
|---|---|
| public Optional Record Component getter of predicate. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| validate | back to summary |
|---|---|
| public List Implements jdk. Doc from jdk. Validates the given option value.
| |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Validator. | |
| public StringToken | |
| public T |
| create | back to summary |
|---|---|
| public static <T> Validator. | |
| sourceToken | back to summary |
|---|---|
| public StringToken sourceToken() | |
| value | back to summary |
|---|---|
| public T value() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ValidatingConsumerException | back to summary |
|---|---|
| pack-priv ValidatingConsumerException(String msg, Exception cause) | |
| ValidatingConsumerException | back to summary |
|---|---|
| pack-priv ValidatingConsumerException(Throwable cause) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ValidatorException | back to summary |
|---|---|
| private ValidatorException(Exception cause) | |