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