Package org.codehaus.plexus.collections
Class DefaultActiveMap
- java.lang.Object
-
- org.codehaus.plexus.collections.AbstractActiveMap
-
- org.codehaus.plexus.collections.DefaultActiveMap
-
- All Implemented Interfaces:
java.util.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
-
-
Constructor Summary
Constructors Constructor Description DefaultActiveMap()DefaultActiveMap(org.codehaus.plexus.PlexusContainer container, java.lang.Class role)DefaultActiveMap(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckedContainsKey(java.lang.Object key)Same asMap.containsKey(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsValue(java.lang.Object value)Same asMap.containsValue(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.SetcheckedEntrySet()Same asMap.entrySet(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.lang.ObjectcheckedGet(java.lang.Object key)Same asMap.get(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedIsEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.java.util.SetcheckedKeySet()Same asMap#keySet(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedSize()Same semantics asCollection.size()orMap.size(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.java.util.CollectioncheckedValues()Same asMap#values(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.SetentrySet()java.lang.Objectget(java.lang.Object key)booleanisEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty().java.util.SetkeySet()intsize()Same semantics asCollection.size()orMap.size().java.util.Collectionvalues()-
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
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySetin interfacejava.util.Map
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
getin interfacejava.util.Map
-
isEmpty
public boolean isEmpty()
Description copied from interface:ActiveCollectionSame semantics asCollection.isEmpty()orMap.isEmpty().- Specified by:
isEmptyin interfaceActiveCollection- Specified by:
isEmptyin interfacejava.util.Map
-
keySet
public java.util.Set keySet()
- Specified by:
keySetin interfacejava.util.Map
-
size
public int size()
Description copied from interface:ActiveCollectionSame semantics asCollection.size()orMap.size().- Specified by:
sizein interfaceActiveCollection- Specified by:
sizein interfacejava.util.Map
-
values
public java.util.Collection values()
- Specified by:
valuesin interfacejava.util.Map
-
checkedContainsKey
public boolean checkedContainsKey(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap.containsKey(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsKeyin interfaceActiveMap- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedContainsValue
public boolean checkedContainsValue(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap.containsValue(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsValuein interfaceActiveMap- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedEntrySet
public java.util.Set checkedEntrySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap.entrySet(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedEntrySetin interfaceActiveMap- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedGet
public java.lang.Object checkedGet(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap.get(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedGetin 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:ActiveCollectionSame semantics asCollection.isEmpty()orMap.isEmpty(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.- Specified by:
checkedIsEmptyin interfaceActiveCollection- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
checkedKeySet
public java.util.Set checkedKeySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap#keySet(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedKeySetin 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:ActiveCollectionSame semantics asCollection.size()orMap.size(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.- Specified by:
checkedSizein interfaceActiveCollection- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
checkedValues
public java.util.Collection checkedValues() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveMapSame asMap#values(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedValuesin interfaceActiveMap- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
-