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