AttributeMappingsList, this is essentially
an immutable Map of AttributeMapping(s), allowing iteration of
all mappings but also retrieval by name (a String key).
Exposing a custom interface is more suitable to our needs than
reusing the stock Map API; it expresses the immutable nature of
this structure, and might allow us to extend it with additional
convenience methods such as needs evolve.
And additional reason for the custom interface is to allow
custom implementations which can be highly optimised as
necessary for our specific needs; for example the
implementation ImmutableAttributeMappingsMap
is able to avoid caching problems related to JDK-8180450, which would
not have been possible with a standard generic container.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public static AttributeMappingsMap. | |
| public void | |
| public AttributeMapping | |
| public int | |
| public Iterable |
| builder | back to summary |
|---|---|
| public static AttributeMappingsMap. | |
| forEachValue | back to summary |
|---|---|
| public void forEachValue(Consumer<? super AttributeMapping> action) | |
| get | back to summary |
|---|---|
| public AttributeMapping get(String name) | |
| size | back to summary |
|---|---|
| public int size() | |
| valueIterator | back to summary |
|---|---|
| public Iterable | |
| Modifier and Type | Field and Description |
|---|---|
| private LinkedHashMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AttributeMappingsMap | |
| public void |
| storage | back to summary |
|---|---|
| private LinkedHashMap<String, AttributeMapping> storage | |
| Builder | back to summary |
|---|---|
| private Builder() | |
| build | back to summary |
|---|---|
| public AttributeMappingsMap build() | |
| put | back to summary |
|---|---|
| public void put(final String name, final AttributeMapping mapping) | |