public static final class ImmutableTypedEvaluableMap.Builder extends Object
ImmutableTypedEvaluableMap.
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 |
|---|---|
ImmutableTypedEvaluableMap |
build()
Builds a new
ImmutableTypedEvaluableMap. |
ImmutableTypedEvaluableMap.Builder |
from(TypedEvaluableMap instance)
Fill a builder with attribute values from the provided
TypedEvaluableMap instance. |
ImmutableTypedEvaluableMap.Builder |
map(Map<String,? extends TypedEvaluableByNumberOfArguments> entries)
Sets or replaces all mappings from the specified map as entries for the
map map. |
ImmutableTypedEvaluableMap.Builder |
putAllMap(Map<String,? extends TypedEvaluableByNumberOfArguments> entries)
Put all mappings from the specified map as entries to
map map. |
ImmutableTypedEvaluableMap.Builder |
putMap(Map.Entry<String,? extends TypedEvaluableByNumberOfArguments> entry)
Put one entry to the
map map. |
ImmutableTypedEvaluableMap.Builder |
putMap(String key,
TypedEvaluableByNumberOfArguments value)
Put one entry to the
map map. |
public final ImmutableTypedEvaluableMap.Builder from(TypedEvaluableMap instance)
TypedEvaluableMap 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 invocationpublic final ImmutableTypedEvaluableMap.Builder putMap(String key, TypedEvaluableByNumberOfArguments value)
map map.key - The key in the map mapvalue - The associated value in the map mapthis builder for use in a chained invocationpublic final ImmutableTypedEvaluableMap.Builder putMap(Map.Entry<String,? extends TypedEvaluableByNumberOfArguments> entry)
map map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ImmutableTypedEvaluableMap.Builder map(Map<String,? extends TypedEvaluableByNumberOfArguments> entries)
map map. Nulls are not permittedentries - The entries that will be added to the map mapthis builder for use in a chained invocationpublic final ImmutableTypedEvaluableMap.Builder putAllMap(Map<String,? extends TypedEvaluableByNumberOfArguments> entries)
map map. Nulls are not permittedentries - The entries that will be added to the map mapthis builder for use in a chained invocationpublic ImmutableTypedEvaluableMap build()
ImmutableTypedEvaluableMap.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.