@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRelatedTo3<X,A,B,C> extends RelatedTo3<X,A,B,C>
RelatedTo3.
Use the static factory method to create immutable instances:
ImmutableRelatedTo3.of().
| Modifier and Type | Method and Description |
|---|---|
protected ValueSource<A> |
a() |
protected ValueSource<B> |
b() |
protected ValueSource<C> |
c() |
static <X,A,B,C> ImmutableRelatedTo3<X,A,B,C> |
copyOf(RelatedTo3<X,A,B,C> instance)
Creates an immutable copy of a
RelatedTo3 value. |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRelatedTo3 that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, a, b, c, validation. |
static <X,A,B,C> ImmutableRelatedTo3<X,A,B,C> |
of(Value<X> destination,
ValueSource<A> a,
ValueSource<B> b,
ValueSource<C> c,
V3<X,A,B,C> validation)
Construct a new immutable
RelatedTo3 instance. |
String |
toString()
Prints the immutable value
RelatedTo3 with attribute values. |
protected V3<X,A,B,C> |
validation() |
ImmutableRelatedTo3<X,A,B,C> |
withA(ValueSource<A> value)
Copy the current immutable object by setting a value for the
a attribute. |
ImmutableRelatedTo3<X,A,B,C> |
withB(ValueSource<B> value)
Copy the current immutable object by setting a value for the
b attribute. |
ImmutableRelatedTo3<X,A,B,C> |
withC(ValueSource<C> value)
Copy the current immutable object by setting a value for the
c attribute. |
ImmutableRelatedTo3<X,A,B,C> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableRelatedTo3<X,A,B,C> |
withValidation(V3<X,A,B,C> value)
Copy the current immutable object by setting a value for the
validation attribute. |
asHumanReadable, sources, validate, withclone, finalize, getClass, notify, notifyAll, wait, wait, waiterror, error, noErrorsasHumanReadableprotected ValueSource<A> a()
protected ValueSource<B> b()
protected ValueSource<C> c()
protected V3<X,A,B,C> validation()
validation in class RelatedTo3<X,A,B,C>validation attributepublic final ImmutableRelatedTo3<X,A,B,C> 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 ImmutableRelatedTo3<X,A,B,C> 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 ImmutableRelatedTo3<X,A,B,C> 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 ImmutableRelatedTo3<X,A,B,C> 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 ImmutableRelatedTo3<X,A,B,C> withValidation(V3<X,A,B,C> 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)
ImmutableRelatedTo3 that have equal attribute values.public int hashCode()
destination, a, b, c, validation.public String toString()
RelatedTo3 with attribute values.public static <X,A,B,C> ImmutableRelatedTo3<X,A,B,C> of(Value<X> destination, ValueSource<A> a, ValueSource<B> b, ValueSource<C> c, V3<X,A,B,C> validation)
RelatedTo3 instance.X - generic parameter XA - generic parameter AB - generic parameter BC - generic parameter Cdestination - The value for the destination attributea - The value for the a attributeb - The value for the b attributec - The value for the c attributevalidation - The value for the validation attributepublic static <X,A,B,C> ImmutableRelatedTo3<X,A,B,C> copyOf(RelatedTo3<X,A,B,C> instance)
RelatedTo3 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 Cinstance - The instance to copyCopyright © 2023. All rights reserved.