@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCopyOnChangeValue<O,T> extends CopyOnChangeValue<O,T>
CopyOnChangeValue.
Use the builder to create immutable instances:
ImmutableCopyOnChangeValue.builder().
Use the static factory method to create immutable instances:
ImmutableCopyOnChangeValue.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCopyOnChangeValue.Builder<O,T>
Builds instances of type
ImmutableCopyOnChangeValue. |
| Modifier and Type | Method and Description |
|---|---|
static <O,T> ImmutableCopyOnChangeValue.Builder<O,T> |
builder()
Creates a builder for
ImmutableCopyOnChangeValue. |
static <O,T> ImmutableCopyOnChangeValue<O,T> |
copyOf(CopyOnChangeValue<O,T> instance)
Creates an immutable copy of a
CopyOnChangeValue value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCopyOnChangeValue that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, property. |
Id<O> |
id() |
static <O,T> ImmutableCopyOnChangeValue<O,T> |
of(Id<O> id,
CopyOnChangeProperty<O,T> property)
Construct a new immutable
CopyOnChangeValue instance. |
protected CopyOnChangeProperty<O,T> |
property() |
String |
toString()
Prints the immutable value
CopyOnChangeValue with attribute values. |
ImmutableCopyOnChangeValue<O,T> |
withId(Id<O> value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableCopyOnChangeValue<O,T> |
withProperty(CopyOnChangeProperty<O,T> value)
Copy the current immutable object by setting a value for the
property attribute. |
asHumanReadable, change, getclone, finalize, getClass, notify, notifyAll, wait, wait, waitnamed, ofType, relatedTo, unvalidatedasHumanReadableprotected CopyOnChangeProperty<O,T> property()
property in class CopyOnChangeValue<O,T>property attributepublic final ImmutableCopyOnChangeValue<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 ImmutableCopyOnChangeValue<O,T> withProperty(CopyOnChangeProperty<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)
ImmutableCopyOnChangeValue that have equal attribute values.public int hashCode()
id, property.public String toString()
CopyOnChangeValue with attribute values.public static <O,T> ImmutableCopyOnChangeValue<O,T> of(Id<O> id, CopyOnChangeProperty<O,T> property)
CopyOnChangeValue instance.O - generic parameter OT - generic parameter Tid - The value for the id attributeproperty - The value for the property attributepublic static <O,T> ImmutableCopyOnChangeValue<O,T> copyOf(CopyOnChangeValue<O,T> instance)
CopyOnChangeValue 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> ImmutableCopyOnChangeValue.Builder<O,T> builder()
ImmutableCopyOnChangeValue.
ImmutableCopyOnChangeValue.<O, T>builder()
.id(de.flapdoodle.formula.types.Id<O>) // required id
.property(de.flapdoodle.formula.values.properties.CopyOnChangeProperty<O, T>) // required property
.build();
O - generic parameter OT - generic parameter TCopyright © 2023. All rights reserved.