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