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