Class ComponentMap<T>
- java.lang.Object
-
- org.codehaus.plexus.component.collections.AbstractComponentCollection<T>
-
- org.codehaus.plexus.component.collections.ComponentMap<T>
-
public class ComponentMap<T> extends AbstractComponentCollection<T> implements Map<String,T>
- Author:
- Jason van Zyl FIXME: [jdcasey] We need to review the efficiency (in speed and memory) of this collection...
-
-
Field Summary
-
Fields inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
componentType, container, hostComponent, logger, role, roleHints
-
-
Constructor Summary
Constructors Constructor Description ComponentMap(MutablePlexusContainer container, Class<T> type, String role, List<String> roleHints, String hostComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckUpdate()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,T>>entrySet()booleanequals(Object o)Tget(Object k)inthashCode()booleanisEmpty()Set<String>keySet()Tput(String key, T value)voidputAll(Map<? extends String,? extends T> map)protected voidreleaseAllCallback()Tremove(Object key)intsize()Collection<T>values()-
Methods inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
clear, getComponentDescriptorMap, lookup
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,T>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,T>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
checkUpdate
protected boolean checkUpdate()
- Overrides:
checkUpdatein classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()
- Specified by:
releaseAllCallbackin classAbstractComponentCollection<T>
-
-