@Value.Immutable(builder=false) public abstract class RelatedTo1<X,A> extends Object implements Validation<X>, HasHumanReadableLabel
| Constructor and Description |
|---|
RelatedTo1() |
| Modifier and Type | Method and Description |
|---|---|
String |
asHumanReadable() |
protected abstract ValueSource<A> |
source() |
Set<ValueSource<?>> |
sources() |
List<ErrorMessage> |
validate(Optional<X> unvalidatedValue,
ValidatedValueLookup values) |
protected abstract V1<X,A> |
validation() |
static <X,A> RelatedTo1<X,A> |
with(Value<X> destination,
ValueSource<A> source,
V1<X,A> validation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestination, error, error, noErrorsasHumanReadable@Value.Parameter protected abstract ValueSource<A> source()
public 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 HasHumanReadableLabelpublic static <X,A> RelatedTo1<X,A> with(Value<X> destination, ValueSource<A> source, V1<X,A> validation)
Copyright © 2023. All rights reserved.