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