@NotThreadSafe public static final class ImmutableProcedureMeta.Builder extends Object
ImmutableProcedureMeta.
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 |
|---|---|
ImmutableProcedureMeta.Builder |
args(Map<String,? extends String> entries)
Sets or replaces all mappings from the specified map as entries for the
args map. |
ImmutableProcedureMeta |
build()
Builds a new
ImmutableProcedureMeta. |
ImmutableProcedureMeta.Builder |
comment(Optional<String> comment)
Initializes the optional value
comment to comment. |
ImmutableProcedureMeta.Builder |
comment(String comment)
Initializes the optional value
comment to comment. |
ImmutableProcedureMeta.Builder |
from(ProcedureMeta instance)
Fill a builder with attribute values from the provided
ProcedureMeta instance. |
ImmutableProcedureMeta.Builder |
name(String name)
Initializes the value for the
name attribute. |
ImmutableProcedureMeta.Builder |
putAllArgs(Map<String,? extends String> entries)
Put all mappings from the specified map as entries to
args map. |
ImmutableProcedureMeta.Builder |
putArgs(Map.Entry<String,? extends String> entry)
Put one entry to the
args map. |
ImmutableProcedureMeta.Builder |
putArgs(String key,
String value)
Put one entry to the
args map. |
@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder from(ProcedureMeta instance)
ProcedureMeta instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder putArgs(String key, String value)
args map.key - The key in the args mapvalue - The associated value in the args mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder putArgs(Map.Entry<String,? extends String> entry)
args map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder args(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder putAllArgs(Map<String,? extends String> entries)
args map. Nulls are not permittedentries - The entries that will be added to the args mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder comment(String comment)
comment to comment.comment - The value for commentthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableProcedureMeta.Builder comment(Optional<String> comment)
comment to comment.comment - The value for commentthis builder for use in a chained invocationpublic ImmutableProcedureMeta build()
ImmutableProcedureMeta.IllegalStateException - if any required attributes are missingCopyright © 2019 Nuiton. All rights reserved.