org.codehaus.plexus.collections
public class DefaultActiveMap extends AbstractActiveMap implements ActiveMap, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
Constructor and Description |
---|
DefaultActiveMap() |
DefaultActiveMap(org.codehaus.plexus.PlexusContainer container,
java.lang.Class role) |
DefaultActiveMap(org.codehaus.plexus.PlexusContainer container,
java.lang.String role) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkedContainsKey(java.lang.Object key)
Same as
Map.containsKey(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
boolean |
checkedContainsValue(java.lang.Object value)
Same as
Map.containsValue(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
java.util.Set |
checkedEntrySet()
Same as
Map.entrySet() , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
java.lang.Object |
checkedGet(java.lang.Object key)
Same as
Map.get(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
boolean |
checkedIsEmpty()
Same semantics as
Collection.isEmpty() or Map.isEmpty() , except this method
will throw a ComponentLookupException if one or more of the elements collected here
fails during lookup. |
java.util.Set |
checkedKeySet()
Same as
Map#keySet(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
int |
checkedSize()
Same semantics as
Collection.size() or Map.size() , except this method
will throw a ComponentLookupException if one or more of the elements collected here
fails during lookup. |
java.util.Collection |
checkedValues()
Same as
Map#values(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
boolean |
isEmpty()
Same semantics as
Collection.isEmpty() or Map.isEmpty() . |
java.util.Set |
keySet() |
int |
size()
Same semantics as
Collection.size() or Map.size() . |
java.util.Collection |
values() |
checkedGetMap, clear, contextualize, enableLogging, getLogger, getMap, getRole, put, putAll, remove, setRole
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRole
public DefaultActiveMap()
public DefaultActiveMap(org.codehaus.plexus.PlexusContainer container, java.lang.Class role)
public DefaultActiveMap(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public boolean isEmpty()
ActiveCollection
Collection.isEmpty()
or Map.isEmpty()
.isEmpty
in interface java.util.Map
isEmpty
in interface ActiveCollection
public java.util.Set keySet()
keySet
in interface java.util.Map
public int size()
ActiveCollection
Collection.size()
or Map.size()
.size
in interface java.util.Map
size
in interface ActiveCollection
public java.util.Collection values()
values
in interface java.util.Map
public boolean checkedContainsKey(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map.containsKey(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedContainsKey
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public boolean checkedContainsValue(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map.containsValue(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedContainsValue
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public java.util.Set checkedEntrySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map.entrySet()
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedEntrySet
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public java.lang.Object checkedGet(java.lang.Object key) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map.get(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedGet
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public boolean checkedIsEmpty() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveCollection
Collection.isEmpty()
or Map.isEmpty()
, except this method
will throw a ComponentLookupException
if one or more of the elements collected here
fails during lookup.checkedIsEmpty
in interface ActiveCollection
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public java.util.Set checkedKeySet() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map#keySet(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedKeySet
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public int checkedSize() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveCollection
Collection.size()
or Map.size()
, except this method
will throw a ComponentLookupException
if one or more of the elements collected here
fails during lookup.checkedSize
in interface ActiveCollection
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public java.util.Collection checkedValues() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveMap
Map#values(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedValues
in interface ActiveMap
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.Copyright © 2014. All Rights Reserved.