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