public 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, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, getOrDefault, 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, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setSource(Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).getSource
in interface BeanMetadataElement
public void setKeyTypeName(String keyTypeName)
public String getKeyTypeName()
public void setValueTypeName(String valueTypeName)
public String getValueTypeName()
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
Mergeable
isMergeEnabled
in interface Mergeable