@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRelatedTo4<X,A,B,C,D> extends RelatedTo4<X,A,B,C,D>
RelatedTo4.
Use the static factory method to create immutable instances:
ImmutableRelatedTo4.of().
| Modifier and Type | Method and Description |
|---|---|
protected ValueSource<A> |
a() |
protected ValueSource<B> |
b() |
protected ValueSource<C> |
c() |
static <X,A,B,C,D> |
copyOf(RelatedTo4<X,A,B,C,D> instance)
Creates an immutable copy of a
RelatedTo4 value. |
protected ValueSource<D> |
d() |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRelatedTo4 that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, a, b, c, d, validation. |
static <X,A,B,C,D> |
of(Value<X> destination,
ValueSource<A> a,
ValueSource<B> b,
ValueSource<C> c,
ValueSource<D> d,
V4<X,A,B,C,D> validation)
Construct a new immutable
RelatedTo4 instance. |
Set<ValueSource<?>> |
sources()
Returns a lazily initialized value of the
sources attribute. |
String |
toString()
Prints the immutable value
RelatedTo4 with attribute values. |
protected V4<X,A,B,C,D> |
validation() |
ImmutableRelatedTo4<X,A,B,C,D> |
withA(ValueSource<A> value)
Copy the current immutable object by setting a value for the
a attribute. |
ImmutableRelatedTo4<X,A,B,C,D> |
withB(ValueSource<B> value)
Copy the current immutable object by setting a value for the
b attribute. |
ImmutableRelatedTo4<X,A,B,C,D> |
withC(ValueSource<C> value)
Copy the current immutable object by setting a value for the
c attribute. |
ImmutableRelatedTo4<X,A,B,C,D> |
withD(ValueSource<D> value)
Copy the current immutable object by setting a value for the
d attribute. |
ImmutableRelatedTo4<X,A,B,C,D> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableRelatedTo4<X,A,B,C,D> |
withValidation(V4<X,A,B,C,D> value)
Copy the current immutable object by setting a value for the
validation attribute. |
asHumanReadable, validate, withclone, finalize, getClass, notify, notifyAll, wait, wait, waiterror, error, noErrorsasHumanReadableprotected ValueSource<A> a()
protected ValueSource<B> b()
protected ValueSource<C> c()
protected ValueSource<D> d()
protected V4<X,A,B,C,D> validation()
validation in class RelatedTo4<X,A,B,C,D>validation attributepublic final ImmutableRelatedTo4<X,A,B,C,D> withDestination(Value<X> value)
destination attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableRelatedTo4<X,A,B,C,D> withA(ValueSource<A> value)
a attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for athis objectpublic final ImmutableRelatedTo4<X,A,B,C,D> withB(ValueSource<B> value)
b attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for bthis objectpublic final ImmutableRelatedTo4<X,A,B,C,D> withC(ValueSource<C> value)
c attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for cthis objectpublic final ImmutableRelatedTo4<X,A,B,C,D> withD(ValueSource<D> value)
d attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for dthis objectpublic final ImmutableRelatedTo4<X,A,B,C,D> withValidation(V4<X,A,B,C,D> value)
validation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for validationthis objectpublic boolean equals(@Nullable Object another)
ImmutableRelatedTo4 that have equal attribute values.public int hashCode()
destination, a, b, c, d, validation.public String toString()
RelatedTo4 with attribute values.public Set<ValueSource<?>> sources()
Returns a lazily initialized value of the sources attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
In case of any exception or error thrown by the lazy value initializer,
the result will not be memoised (i.e. remembered) and on next call computation
will be attempted again.
sources in interface Validation<X>sources in class RelatedTo4<X,A,B,C,D>sources attributepublic static <X,A,B,C,D> ImmutableRelatedTo4<X,A,B,C,D> of(Value<X> destination, ValueSource<A> a, ValueSource<B> b, ValueSource<C> c, ValueSource<D> d, V4<X,A,B,C,D> validation)
RelatedTo4 instance.X - generic parameter XA - generic parameter AB - generic parameter BC - generic parameter CD - generic parameter Ddestination - The value for the destination attributea - The value for the a attributeb - The value for the b attributec - The value for the c attributed - The value for the d attributevalidation - The value for the validation attributepublic static <X,A,B,C,D> ImmutableRelatedTo4<X,A,B,C,D> copyOf(RelatedTo4<X,A,B,C,D> instance)
RelatedTo4 value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.X - generic parameter XA - generic parameter AB - generic parameter BC - generic parameter CD - generic parameter Dinstance - The instance to copyCopyright © 2023. All rights reserved.