Package org.codehaus.plexus.collections
Class DefaultActiveMap
java.lang.Object
org.codehaus.plexus.collections.AbstractActiveMap
org.codehaus.plexus.collections.DefaultActiveMap
- All Implemented Interfaces:
Map
,ActiveCollection
,ActiveMap
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class DefaultActiveMap
extends AbstractActiveMap
implements ActiveMap, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultActiveMap
(org.codehaus.plexus.PlexusContainer container, Class role) DefaultActiveMap
(org.codehaus.plexus.PlexusContainer container, String role) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkedContainsKey
(Object key) Same asMap.containsKey(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
checkedContainsValue
(Object value) Same asMap.containsValue(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Same asMap.entrySet()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.checkedGet
(Object key) Same asMap.get(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
Same semantics asCollection.isEmpty()
orMap.isEmpty()
, except this method will throw aComponentLookupException
if one or more of the elements collected here fails during lookup.Same asMap#keySet(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.int
Same semantics asCollection.size()
orMap.size()
, except this method will throw aComponentLookupException
if one or more of the elements collected here fails during lookup.Same asMap#values(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
Same semantics asCollection.isEmpty()
orMap.isEmpty()
.keySet()
int
size()
Same semantics asCollection.size()
orMap.size()
.values()
Methods inherited from class org.codehaus.plexus.collections.AbstractActiveMap
checkedGetMap, clear, contextualize, enableLogging, getLogger, getMap, getRole, put, putAll, remove, setRole
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
getRole
Methods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
contextualize
Methods inherited from interface org.codehaus.plexus.logging.LogEnabled
enableLogging
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
Constructor Details
-
DefaultActiveMap
public DefaultActiveMap() -
DefaultActiveMap
-
DefaultActiveMap
-
-
Method Details
-
containsKey
- Specified by:
containsKey
in interfaceMap
-
containsValue
- Specified by:
containsValue
in interfaceMap
-
entrySet
-
get
-
isEmpty
public boolean isEmpty()Description copied from interface:ActiveCollection
Same semantics asCollection.isEmpty()
orMap.isEmpty()
.- Specified by:
isEmpty
in interfaceActiveCollection
- Specified by:
isEmpty
in interfaceMap
-
keySet
-
size
public int size()Description copied from interface:ActiveCollection
Same semantics asCollection.size()
orMap.size()
.- Specified by:
size
in interfaceActiveCollection
- Specified by:
size
in interfaceMap
-
values
-
checkedContainsKey
public boolean checkedContainsKey(Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveMap
Same asMap.containsKey(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedContainsKey
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedContainsValue
public boolean checkedContainsValue(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveMap
Same asMap.containsValue(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedContainsValue
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedEntrySet
public Set checkedEntrySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMap
Same asMap.entrySet()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedEntrySet
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedGet
public Object checkedGet(Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveMap
Same asMap.get(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedGet
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedIsEmpty
public boolean checkedIsEmpty() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveCollection
Same semantics asCollection.isEmpty()
orMap.isEmpty()
, except this method will throw aComponentLookupException
if one or more of the elements collected here fails during lookup.- Specified by:
checkedIsEmpty
in interfaceActiveCollection
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
checkedKeySet
public Set checkedKeySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMap
Same asMap#keySet(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedKeySet
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedSize
public int checkedSize() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveCollection
Same semantics asCollection.size()
orMap.size()
, except this method will throw aComponentLookupException
if one or more of the elements collected here fails during lookup.- Specified by:
checkedSize
in interfaceActiveCollection
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
checkedValues
public Collection checkedValues() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMap
Same asMap#values(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedValues
in interfaceActiveMap
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-