@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSelf<X> extends Self<X>
Self.
Use the static factory method to create immutable instances:
ImmutableSelf.of().
| Modifier and Type | Method and Description |
|---|---|
static <X> ImmutableSelf<X> |
copyOf(Self<X> instance)
Creates an immutable copy of a
Self value. |
Value<X> |
destination() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSelf that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
destination, validation. |
static <X> ImmutableSelf<X> |
of(Value<X> destination,
V0<X> validation)
Construct a new immutable
Self instance. |
String |
toString()
Prints the immutable value
Self with attribute values. |
protected V0<X> |
validation() |
ImmutableSelf<X> |
withDestination(Value<X> value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableSelf<X> |
withValidation(V0<X> value)
Copy the current immutable object by setting a value for the
validation attribute. |
asHumanReadable, sources, validate, withclone, finalize, getClass, notify, notifyAll, wait, wait, waiterror, error, noErrorsasHumanReadableprotected V0<X> validation()
validation in class Self<X>validation attributepublic final ImmutableSelf<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 ImmutableSelf<X> withValidation(V0<X> value)
validation attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for validationthis objectpublic boolean equals(@Nullable Object another)
ImmutableSelf that have equal attribute values.public int hashCode()
destination, validation.public String toString()
Self with attribute values.public static <X> ImmutableSelf<X> of(Value<X> destination, V0<X> validation)
Self instance.X - generic parameter Xdestination - The value for the destination attributevalidation - The value for the validation attributepublic static <X> ImmutableSelf<X> copyOf(Self<X> instance)
Self 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.