@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableModifyInstanceValue<O,T> extends ModifyInstanceValue<O,T>
ModifyInstanceValue.
Use the builder to create immutable instances:
ImmutableModifyInstanceValue.builder().
Use the static factory method to create immutable instances:
ImmutableModifyInstanceValue.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableModifyInstanceValue.Builder<O,T>
Builds instances of type
ImmutableModifyInstanceValue. |
| Modifier and Type | Method and Description |
|---|---|
static <O,T> ImmutableModifyInstanceValue.Builder<O,T> |
builder()
Creates a builder for
ImmutableModifyInstanceValue. |
static <O,T> ImmutableModifyInstanceValue<O,T> |
copyOf(ModifyInstanceValue<O,T> instance)
Creates an immutable copy of a
ModifyInstanceValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableModifyInstanceValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, property. |
Id<O> |
id() |
static <O,T> ImmutableModifyInstanceValue<O,T> |
of(Id<O> id,
ModifiableProperty<O,T> property)
Construct a new immutable
ModifyInstanceValue instance. |
protected ModifiableProperty<O,T> |
property() |
String |
toString()
Prints the immutable value
ModifyInstanceValue with attribute values. |
ImmutableModifyInstanceValue<O,T> |
withId(Id<O> value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableModifyInstanceValue<O,T> |
withProperty(ModifiableProperty<O,T> value)
Copy the current immutable object by setting a value for the
property attribute. |
asHumanReadable, get, setclone, finalize, getClass, notify, notifyAll, wait, wait, waitasHumanReadableprotected ModifiableProperty<O,T> property()
property in class ModifyInstanceValue<O,T>property attributepublic final ImmutableModifyInstanceValue<O,T> withId(Id<O> value)
id attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutableModifyInstanceValue<O,T> withProperty(ModifiableProperty<O,T> value)
property attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for propertythis objectpublic boolean equals(@Nullable Object another)
ImmutableModifyInstanceValue that have equal attribute values.public int hashCode()
id, property.public String toString()
ModifyInstanceValue with attribute values.public static <O,T> ImmutableModifyInstanceValue<O,T> of(Id<O> id, ModifiableProperty<O,T> property)
ModifyInstanceValue instance.O - generic parameter OT - generic parameter Tid - The value for the id attributeproperty - The value for the property attributepublic static <O,T> ImmutableModifyInstanceValue<O,T> copyOf(ModifyInstanceValue<O,T> instance)
ModifyInstanceValue value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.O - generic parameter OT - generic parameter Tinstance - The instance to copypublic static <O,T> ImmutableModifyInstanceValue.Builder<O,T> builder()
ImmutableModifyInstanceValue.
ImmutableModifyInstanceValue.<O, T>builder()
.id(de.flapdoodle.formula.types.Id<O>) // required id
.property(de.flapdoodle.formula.values.properties.ModifiableProperty<O, T>) // required property
.build();
O - generic parameter OT - generic parameter TCopyright © 2023. All rights reserved.