@NotThreadSafe public static final class ImmutableF1WithLabel.Builder<A,R> extends Object
ImmutableF1WithLabel.
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 |
|---|---|
ImmutableF1WithLabel<A,R> |
build()
Builds a new
ImmutableF1WithLabel. |
ImmutableF1WithLabel.Builder<A,R> |
delegate(F1<A,R> delegate)
Initializes the value for the
delegate attribute. |
ImmutableF1WithLabel.Builder<A,R> |
from(F1.F1WithLabel<A,R> instance)
Fill a builder with attribute values from the provided
F1WithLabel instance. |
ImmutableF1WithLabel.Builder<A,R> |
label(String label)
Initializes the value for the
label attribute. |
@CanIgnoreReturnValue public final ImmutableF1WithLabel.Builder<A,R> from(F1.F1WithLabel<A,R> instance)
F1WithLabel 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 ImmutableF1WithLabel.Builder<A,R> delegate(F1<A,R> delegate)
delegate attribute.delegate - The value for delegatethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableF1WithLabel.Builder<A,R> label(String label)
label attribute.label - The value for labelthis builder for use in a chained invocationpublic ImmutableF1WithLabel<A,R> build()
ImmutableF1WithLabel.IllegalStateException - if any required attributes are missingCopyright © 2023. All rights reserved.