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