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