@Value.Immutable(builder=false) public abstract class Self<X> extends Object implements Validation<X>, HasHumanReadableLabel
| Constructor and Description |
|---|
Self() |
| Modifier and Type | Method and Description |
|---|---|
String |
asHumanReadable() |
Set<ValueSource<?>> |
sources() |
List<ErrorMessage> |
validate(Optional<X> unvalidatedValue,
ValidatedValueLookup values) |
protected abstract V0<X> |
validation() |
static <X> Self<X> |
with(Value<X> destination,
V0<X> validation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestination, error, error, noErrorsasHumanReadablepublic Set<ValueSource<?>> sources()
sources in interface Validation<X>public List<ErrorMessage> validate(Optional<X> unvalidatedValue, ValidatedValueLookup values)
validate in interface Validation<X>public String asHumanReadable()
asHumanReadable in interface HasHumanReadableLabelCopyright © 2023. All rights reserved.