类 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>
- 类型参数:
K- the key typeV- the value type
- 所有已实现的接口:
Serializable,Cloneable,Map<K,V>,BeanMetadataElement,Mergeable
public class ManagedMap<K,V> extends LinkedHashMap<K,V> implements Mergeable, BeanMetadataElement
Tag collection class used to hold managed Map values, which may include runtime bean references (to be resolved into bean objects).- 从以下版本开始:
- 27.05.2003
- 作者:
- Juergen Hoeller, Rob Harrop
- 另请参阅:
- 序列化表格
嵌套类概要
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
构造器概要
构造器 构造器 说明 ManagedMap()ManagedMap(int initialCapacity)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetKeyTypeName()Return the default key type name (class name) to be used for this map.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).StringgetValueTypeName()Return the default value type name (class name) to be used for this map.booleanisMergeEnabled()Is merging enabled for this particular instance?Objectmerge(Object parent)Merge the current value set with that of the supplied object.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.voidsetSource(Object source)Set the configuration sourceObjectfor this metadata element.voidsetValueTypeName(String valueTypeName)Set the default value type name (class name) to be used for this map.从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
从类继承的方法 java.util.AbstractMap
equals, hashCode, toString
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
构造器详细资料
ManagedMap
public ManagedMap()
ManagedMap
public ManagedMap(int initialCapacity)
方法详细资料
setSource
public void setSource(@Nullable Object source)
Set the configuration sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
@Nullable public Object getSource()
从接口复制的说明:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- 指定者:
getSource在接口中BeanMetadataElement
setKeyTypeName
public void setKeyTypeName(@Nullable String keyTypeName)
Set the default key type name (class name) to be used for this map.
getKeyTypeName
@Nullable public String getKeyTypeName()
Return the default key type name (class name) to be used for this map.
setValueTypeName
public void setValueTypeName(@Nullable String valueTypeName)
Set the default value type name (class name) to be used for this map.
getValueTypeName
@Nullable public String getValueTypeName()
Return the default value type name (class name) to be used for this map.
setMergeEnabled
public void setMergeEnabled(boolean mergeEnabled)
Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.
isMergeEnabled
public boolean isMergeEnabled()
从接口复制的说明:MergeableIs merging enabled for this particular instance?- 指定者:
isMergeEnabled在接口中Mergeable