@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRelatedTo1<X,A> extends RelatedTo1<X,A>
RelatedTo1.
Use the static factory method to create immutable instances:
ImmutableRelatedTo1.of().
| Modifier and Type | Method and Description |
|---|---|
static <X,A> ImmutableRelatedTo1<X,A> |
copyOf(RelatedTo1<X,A> instance)
Creates an immutable copy of a
RelatedTo1 value. |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRelatedTo1 that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, source, validation. |
static <X,A> ImmutableRelatedTo1<X,A> |
of(Value<X> destination,
ValueSource<A> source,
V1<X,A> validation)
Construct a new immutable
RelatedTo1 instance. |
protected ValueSource<A> |
source() |
String |
toString()
Prints the immutable value
RelatedTo1 with attribute values. |
protected V1<X,A> |
validation() |
ImmutableRelatedTo1<X,A> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableRelatedTo1<X,A> |
withSource(ValueSource<A> value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableRelatedTo1<X,A> |
withValidation(V1<X,A> 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> source()
source in class RelatedTo1<X,A>source attributeprotected V1<X,A> validation()
validation in class RelatedTo1<X,A>validation attributepublic final ImmutableRelatedTo1<X,A> 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 ImmutableRelatedTo1<X,A> withSource(ValueSource<A> value)
source attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for sourcethis objectpublic final ImmutableRelatedTo1<X,A> withValidation(V1<X,A> 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)
ImmutableRelatedTo1 that have equal attribute values.public int hashCode()
destination, source, validation.public String toString()
RelatedTo1 with attribute values.public static <X,A> ImmutableRelatedTo1<X,A> of(Value<X> destination, ValueSource<A> source, V1<X,A> validation)
RelatedTo1 instance.X - generic parameter XA - generic parameter Adestination - The value for the destination attributesource - The value for the source attributevalidation - The value for the validation attributepublic static <X,A> ImmutableRelatedTo1<X,A> copyOf(RelatedTo1<X,A> instance)
RelatedTo1 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 Ainstance - The instance to copyCopyright © 2023. All rights reserved.