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 boolean
checkUpdate()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,T>>
entrySet()
boolean
equals(Object o)
T
get(Object k)
int
hashCode()
boolean
isEmpty()
Set<String>
keySet()
T
put(String key, T value)
void
putAll(Map<? extends String,? extends T> map)
protected void
releaseAllCallback()
T
remove(Object key)
int
size()
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:
containsKey
in interfaceMap<String,T>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,T>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
checkUpdate
protected boolean checkUpdate()
- Overrides:
checkUpdate
in classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()
- Specified by:
releaseAllCallback
in classAbstractComponentCollection<T>
-
-