@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableChangeableInstanceValueLookup<O extends ChangeableInstance<O>> extends ChangeableInstanceValueLookup<O>
ChangeableInstanceValueLookup.
Use the builder to create immutable instances:
ImmutableChangeableInstanceValueLookup.builder().
Use the static factory method to create immutable instances:
ImmutableChangeableInstanceValueLookup.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableChangeableInstanceValueLookup.Builder<O extends ChangeableInstance<O>>
Builds instances of type
ImmutableChangeableInstanceValueLookup. |
| Modifier and Type | Method and Description |
|---|---|
static <O extends ChangeableInstance<O>> |
builder()
Creates a builder for
ImmutableChangeableInstanceValueLookup. |
static <O extends ChangeableInstance<O>> |
copyOf(ChangeableInstanceValueLookup<O> instance)
Creates an immutable copy of a
ChangeableInstanceValueLookup value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableChangeableInstanceValueLookup that have equal attribute values. |
protected ValueLookup |
fallback() |
int |
hashCode()
Computes a hash code from attributes:
instance, fallback. |
protected O |
instance() |
static <O extends ChangeableInstance<O>> |
of(O instance,
ValueLookup fallback)
Construct a new immutable
ChangeableInstanceValueLookup instance. |
String |
toString()
Prints the immutable value
ChangeableInstanceValueLookup with attribute values. |
ImmutableChangeableInstanceValueLookup<O> |
withFallback(ValueLookup value)
Copy the current immutable object by setting a value for the
fallback attribute. |
ImmutableChangeableInstanceValueLookup<O> |
withInstance(O value)
Copy the current immutable object by setting a value for the
instance attribute. |
getclone, finalize, getClass, notify, notifyAll, wait, wait, waitfailOnEachValueprotected O instance()
instance in class ChangeableInstanceValueLookup<O extends ChangeableInstance<O>>instance attributeprotected ValueLookup fallback()
fallback in class ChangeableInstanceValueLookup<O extends ChangeableInstance<O>>fallback attributepublic final ImmutableChangeableInstanceValueLookup<O> withInstance(O value)
instance attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for instancethis objectpublic final ImmutableChangeableInstanceValueLookup<O> withFallback(ValueLookup value)
fallback attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fallbackthis objectpublic boolean equals(@Nullable Object another)
ImmutableChangeableInstanceValueLookup that have equal attribute values.public int hashCode()
instance, fallback.public String toString()
ChangeableInstanceValueLookup with attribute values.public static <O extends ChangeableInstance<O>> ImmutableChangeableInstanceValueLookup<O> of(O instance, ValueLookup fallback)
ChangeableInstanceValueLookup instance.O - generic parameter Oinstance - The value for the instance attributefallback - The value for the fallback attributepublic static <O extends ChangeableInstance<O>> ImmutableChangeableInstanceValueLookup<O> copyOf(ChangeableInstanceValueLookup<O> instance)
ChangeableInstanceValueLookup 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 Oinstance - The instance to copypublic static <O extends ChangeableInstance<O>> ImmutableChangeableInstanceValueLookup.Builder<O> builder()
ImmutableChangeableInstanceValueLookup.
ImmutableChangeableInstanceValueLookup.<O>builder()
.instance(O) // required instance
.fallback(de.flapdoodle.formula.calculate.ValueLookup) // required fallback
.build();
O - generic parameter OCopyright © 2023. All rights reserved.