Package org.codehaus.plexus.collections
Class DefaultActiveSet
java.lang.Object
org.codehaus.plexus.collections.AbstractActiveSet
org.codehaus.plexus.collections.DefaultActiveSet
- All Implemented Interfaces:
Iterable
,Collection
,Set
,ActiveCollection
,ActiveSet
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class DefaultActiveSet
extends AbstractActiveSet
implements ActiveSet, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultActiveSet
(org.codehaus.plexus.PlexusContainer container, Class role) DefaultActiveSet
(org.codehaus.plexus.PlexusContainer container, String role) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkedContains
(Object value) Same asSet.contains(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
checkedContainsAll
(Collection collection) Same asSet.containsAll(Collection)
, 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 asSet.iterator()
, 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.Object[]
Same asSet.toArray()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Object[]
checkedToArray
(Object[] array) Same asSet.toArray(Object[])
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
boolean
containsAll
(Collection collection) boolean
isEmpty()
Same semantics asCollection.isEmpty()
orMap.isEmpty()
.iterator()
int
size()
Same semantics asCollection.size()
orMap.size()
.Object[]
toArray()
Object[]
Methods inherited from class org.codehaus.plexus.collections.AbstractActiveSet
add, addAll, checkedGetSet, clear, contextualize, enableLogging, getLogger, getRole, getSet, remove, removeAll, retainAll, 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 java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
contextualize
Methods inherited from interface org.codehaus.plexus.logging.LogEnabled
enableLogging
-
Constructor Details
-
DefaultActiveSet
public DefaultActiveSet() -
DefaultActiveSet
-
DefaultActiveSet
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
-
containsAll
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceSet
-
isEmpty
public boolean isEmpty()Description copied from interface:ActiveCollection
Same semantics asCollection.isEmpty()
orMap.isEmpty()
.- Specified by:
isEmpty
in interfaceActiveCollection
- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceSet
-
iterator
-
size
public int size()Description copied from interface:ActiveCollection
Same semantics asCollection.size()
orMap.size()
.- Specified by:
size
in interfaceActiveCollection
- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
toArray
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
checkedContains
public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveSet
Same asSet.contains(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedContains
in interfaceActiveSet
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedContainsAll
public boolean checkedContainsAll(Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveSet
Same asSet.containsAll(Collection)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedContainsAll
in interfaceActiveSet
- 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
-
checkedIterator
public Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveSet
Same asSet.iterator()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedIterator
in interfaceActiveSet
- 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
-
checkedToArray
public Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveSet
Same asSet.toArray()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedToArray
in interfaceActiveSet
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-
checkedToArray
public Object[] checkedToArray(Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveSet
Same asSet.toArray(Object[])
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.- Specified by:
checkedToArray
in interfaceActiveSet
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.
-