K
- the key typeV
- the value typepublic class ManagedMap<K,V> extends LinkedHashMap<K,V> implements Mergeable, BeanMetadataElement
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ManagedMap() |
ManagedMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
String |
getKeyTypeName()
Return the default key type name (class name) to be used for this map.
|
Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null ). |
String |
getValueTypeName()
Return the default value type name (class name) to be used for this map.
|
boolean |
isMergeEnabled()
Is merging enabled for this particular instance?
|
Object |
merge(Object parent)
Merge the current value set with that of the supplied object.
|
void |
setKeyTypeName(String keyTypeName)
Set the default key type name (class name) to be used for this map.
|
void |
setMergeEnabled(boolean mergeEnabled)
Set whether merging should be enabled for this collection,
in case of a 'parent' collection value being present.
|
void |
setSource(Object source)
Set the configuration source
Object for this metadata element. |
void |
setValueTypeName(String valueTypeName)
Set the default value type name (class name) to be used for this map.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setSource(@Nullable Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).getSource
in interface BeanMetadataElement
public void setKeyTypeName(@Nullable String keyTypeName)
@Nullable public String getKeyTypeName()
public void setValueTypeName(@Nullable String valueTypeName)
@Nullable public String getValueTypeName()
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
Mergeable
isMergeEnabled
in interface Mergeable