@NotThreadSafe public static final class ImmutableChangeableInstanceValueLookup.Builder<O extends ChangeableInstance<O>> extends Object
ImmutableChangeableInstanceValueLookup.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableChangeableInstanceValueLookup<O> |
build()
Builds a new
ImmutableChangeableInstanceValueLookup. |
ImmutableChangeableInstanceValueLookup.Builder<O> |
fallback(ValueLookup fallback)
Initializes the value for the
fallback attribute. |
ImmutableChangeableInstanceValueLookup.Builder<O> |
from(ChangeableInstanceValueLookup<O> instance)
Fill a builder with attribute values from the provided
ChangeableInstanceValueLookup instance. |
ImmutableChangeableInstanceValueLookup.Builder<O> |
instance(O instance)
Initializes the value for the
instance attribute. |
@CanIgnoreReturnValue public final ImmutableChangeableInstanceValueLookup.Builder<O> from(ChangeableInstanceValueLookup<O> instance)
ChangeableInstanceValueLookup instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableChangeableInstanceValueLookup.Builder<O> instance(O instance)
instance attribute.instance - The value for instancethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableChangeableInstanceValueLookup.Builder<O> fallback(ValueLookup fallback)
fallback attribute.fallback - The value for fallbackthis builder for use in a chained invocationpublic ImmutableChangeableInstanceValueLookup<O> build()
ImmutableChangeableInstanceValueLookup.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.