Class ManagedMap<K,V> 
java.lang.Object
java.util.AbstractMap<K,V>
 
java.util.HashMap<K,V>
 
java.util.LinkedHashMap<K,V>
 
org.springframework.beans.factory.support.ManagedMap<K,V> 
- Type Parameters:
- K- the key type
- V- the value type
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<K,,- V> - BeanMetadataElement,- Mergeable
Tag collection class used to hold managed Map values, which may
 include runtime bean references (to be resolved into bean objects).
- Since:
- 27.05.2003
- Author:
- Juergen Hoeller, Rob Harrop
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturn the default key type name (class name) to be used for this map.Return the configuration sourceObjectfor this metadata element (may benull).Return the default value type name (class name) to be used for this map.booleanIs merging enabled for this particular instance?Merge the current value set with that of the supplied object.static <K,V> ManagedMap<K, V> Return a new instance containing keys and values extracted from the given entries.voidsetKeyTypeName(String keyTypeName) Set the default key type name (class name) to be used for this map.voidsetMergeEnabled(boolean mergeEnabled) Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.voidSet the configuration sourceObjectfor this metadata element.voidsetValueTypeName(String valueTypeName) Set the default value type name (class name) to be used for this map.Methods inherited from class java.util.LinkedHashMapclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMapclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMapequals, hashCode, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
- 
Constructor Details- 
ManagedMappublic ManagedMap()
- 
ManagedMappublic ManagedMap(int initialCapacity) 
 
- 
- 
Method Details- 
ofEntries@SafeVarargs public static <K,V> ManagedMap<K,V> ofEntries(Map.Entry<? extends K, ? extends V>... entries) Return a new instance containing keys and values extracted from the given entries. The entries themselves are not stored in the map.- Type Parameters:
- K- the- Map's key type
- V- the- Map's value type
- Parameters:
- entries-- Map.Entrys containing the keys and values from which the map is populated
- Returns:
- a Mapcontaining the specified mappings
- Since:
- 5.3.16
 
- 
setSourceSet the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used. 
- 
getSourceDescription copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
- getSourcein interface- BeanMetadataElement
 
- 
setKeyTypeNameSet the default key type name (class name) to be used for this map.
- 
getKeyTypeNameReturn the default key type name (class name) to be used for this map.
- 
setValueTypeNameSet the default value type name (class name) to be used for this map.
- 
getValueTypeNameReturn the default value type name (class name) to be used for this map.
- 
setMergeEnabledpublic void setMergeEnabled(boolean mergeEnabled) Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.
- 
isMergeEnabledpublic boolean isMergeEnabled()Description copied from interface:MergeableIs merging enabled for this particular instance?- Specified by:
- isMergeEnabledin interface- Mergeable
 
- 
mergeDescription copied from interface:MergeableMerge the current value set with that of the supplied object.The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object. 
 
-