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