public class ManagedMap<K,V> extends java.util.LinkedHashMap<K,V> implements Mergeable, BeanMetadataElement
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keyTypeName |
private boolean |
mergeEnabled |
private java.lang.Object |
source |
private java.lang.String |
valueTypeName |
Constructor and Description |
---|
ManagedMap() |
ManagedMap(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKeyTypeName()
Return the default key type name (class name) to be used for this map.
|
java.lang.Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null ). |
java.lang.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?
|
java.lang.Object |
merge(java.lang.Object parent)
Merge the current value set with that of the supplied object.
|
void |
setKeyTypeName(java.lang.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(java.lang.Object source)
Set the configuration source
Object for this metadata element. |
void |
setValueTypeName(java.lang.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
private java.lang.Object source
private java.lang.String keyTypeName
private java.lang.String valueTypeName
private boolean mergeEnabled
public void setSource(java.lang.Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).getSource
in interface BeanMetadataElement
public void setKeyTypeName(java.lang.String keyTypeName)
public java.lang.String getKeyTypeName()
public void setValueTypeName(java.lang.String valueTypeName)
public java.lang.String getValueTypeName()
public void setMergeEnabled(boolean mergeEnabled)
public boolean isMergeEnabled()
Mergeable
isMergeEnabled
in interface Mergeable
public java.lang.Object merge(java.lang.Object parent)
Mergeable
The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.