@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRelatedTo2<X,A,B> extends RelatedTo2<X,A,B>
RelatedTo2.
Use the static factory method to create immutable instances:
ImmutableRelatedTo2.of().
| Modifier and Type | Method and Description |
|---|---|
protected ValueSource<A> |
a() |
protected ValueSource<B> |
b() |
static <X,A,B> ImmutableRelatedTo2<X,A,B> |
copyOf(RelatedTo2<X,A,B> instance)
Creates an immutable copy of a
RelatedTo2 value. |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRelatedTo2 that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, a, b, validation. |
static <X,A,B> ImmutableRelatedTo2<X,A,B> |
of(Value<X> destination,
ValueSource<A> a,
ValueSource<B> b,
V2<X,A,B> validation)
Construct a new immutable
RelatedTo2 instance. |
String |
toString()
Prints the immutable value
RelatedTo2 with attribute values. |
protected V2<X,A,B> |
validation() |
ImmutableRelatedTo2<X,A,B> |
withA(ValueSource<A> value)
Copy the current immutable object by setting a value for the
a attribute. |
ImmutableRelatedTo2<X,A,B> |
withB(ValueSource<B> value)
Copy the current immutable object by setting a value for the
b attribute. |
ImmutableRelatedTo2<X,A,B> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableRelatedTo2<X,A,B> |
withValidation(V2<X,A,B> 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()
a in class RelatedTo2<X,A,B>a attributeprotected ValueSource<B> b()
b in class RelatedTo2<X,A,B>b attributeprotected V2<X,A,B> validation()
validation in class RelatedTo2<X,A,B>validation attributepublic final ImmutableRelatedTo2<X,A,B> 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 ImmutableRelatedTo2<X,A,B> 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 ImmutableRelatedTo2<X,A,B> 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 ImmutableRelatedTo2<X,A,B> withValidation(V2<X,A,B> 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)
ImmutableRelatedTo2 that have equal attribute values.public int hashCode()
destination, a, b, validation.public String toString()
RelatedTo2 with attribute values.public static <X,A,B> ImmutableRelatedTo2<X,A,B> of(Value<X> destination, ValueSource<A> a, ValueSource<B> b, V2<X,A,B> validation)
RelatedTo2 instance.X - generic parameter XA - generic parameter AB - generic parameter Bdestination - The value for the destination attributea - The value for the a attributeb - The value for the b attributevalidation - The value for the validation attributepublic static <X,A,B> ImmutableRelatedTo2<X,A,B> copyOf(RelatedTo2<X,A,B> instance)
RelatedTo2 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 Binstance - The instance to copyCopyright © 2023. All rights reserved.