@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMerge4<A,B,C,D,X> extends Merge4<A,B,C,D,X>
Merge4.
Use the static factory method to create immutable instances:
ImmutableMerge4.of().
| Modifier and Type | Method and Description |
|---|---|
protected ValueSource<A> |
a() |
protected ValueSource<B> |
b() |
protected ValueSource<C> |
c() |
static <A,B,C,D,X> |
copyOf(Merge4<A,B,C,D,X> instance)
Creates an immutable copy of a
Merge4 value. |
protected ValueSource<D> |
d() |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMerge4 that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, a, b, c, d, transformation. |
static <A,B,C,D,X> |
of(Value<X> destination,
ValueSource<A> a,
ValueSource<B> b,
ValueSource<C> c,
ValueSource<D> d,
FN4<A,B,C,D,X> transformation)
Construct a new immutable
Merge4 instance. |
String |
toString()
Prints the immutable value
Merge4 with attribute values. |
protected FN4<A,B,C,D,X> |
transformation() |
ImmutableMerge4<A,B,C,D,X> |
withA(ValueSource<A> value)
Copy the current immutable object by setting a value for the
a attribute. |
ImmutableMerge4<A,B,C,D,X> |
withB(ValueSource<B> value)
Copy the current immutable object by setting a value for the
b attribute. |
ImmutableMerge4<A,B,C,D,X> |
withC(ValueSource<C> value)
Copy the current immutable object by setting a value for the
c attribute. |
ImmutableMerge4<A,B,C,D,X> |
withD(ValueSource<D> value)
Copy the current immutable object by setting a value for the
d attribute. |
ImmutableMerge4<A,B,C,D,X> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableMerge4<A,B,C,D,X> |
withTransformation(FN4<A,B,C,D,X> value)
Copy the current immutable object by setting a value for the
transformation attribute. |
asHumanReadable, calculate, sources, withclone, finalize, getClass, notify, notifyAll, wait, wait, waitasHumanReadableprotected ValueSource<A> a()
protected ValueSource<B> b()
protected ValueSource<C> c()
protected ValueSource<D> d()
public final ImmutableMerge4<A,B,C,D,X> 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 ImmutableMerge4<A,B,C,D,X> 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 ImmutableMerge4<A,B,C,D,X> 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 ImmutableMerge4<A,B,C,D,X> 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 ImmutableMerge4<A,B,C,D,X> 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 ImmutableMerge4<A,B,C,D,X> withTransformation(FN4<A,B,C,D,X> value)
transformation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for transformationthis objectpublic boolean equals(@Nullable Object another)
ImmutableMerge4 that have equal attribute values.public int hashCode()
destination, a, b, c, d, transformation.public String toString()
Merge4 with attribute values.public static <A,B,C,D,X> ImmutableMerge4<A,B,C,D,X> of(Value<X> destination, ValueSource<A> a, ValueSource<B> b, ValueSource<C> c, ValueSource<D> d, FN4<A,B,C,D,X> transformation)
Merge4 instance.A - generic parameter AB - generic parameter BC - generic parameter CD - generic parameter DX - generic parameter Xdestination - 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 attributetransformation - The value for the transformation attributepublic static <A,B,C,D,X> ImmutableMerge4<A,B,C,D,X> copyOf(Merge4<A,B,C,D,X> instance)
Merge4 value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.A - generic parameter AB - generic parameter BC - generic parameter CD - generic parameter DX - generic parameter Xinstance - The instance to copyCopyright © 2023. All rights reserved.