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 TypeMethodDescriptionbooleancheckedContains(Object value) Same asSet.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsAll(Collection collection) Same asSet.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleanSame semantics asCollection.isEmpty()orMap.isEmpty(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.Same asSet.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intSame semantics asCollection.size()orMap.size(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.Object[]Same asSet.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Object[]checkedToArray(Object[] array) Same asSet.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleanbooleancontainsAll(Collection collection) booleanisEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty().iterator()intsize()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, setRoleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.collections.ActiveCollection
getRoleMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
contextualizeMethods inherited from interface org.codehaus.plexus.logging.LogEnabled
enableLogging
-
Constructor Details
-
DefaultActiveSet
public DefaultActiveSet() -
DefaultActiveSet
-
DefaultActiveSet
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceSet
-
isEmpty
public boolean isEmpty()Description copied from interface:ActiveCollectionSame semantics asCollection.isEmpty()orMap.isEmpty().- Specified by:
isEmptyin interfaceActiveCollection- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceSet
-
iterator
-
size
public int size()Description copied from interface:ActiveCollectionSame semantics asCollection.size()orMap.size().- Specified by:
sizein interfaceActiveCollection- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceSet
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceSet
-
checkedContains
public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveSetSame asSet.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsin 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:ActiveSetSame asSet.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsAllin 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: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
-
checkedIterator
public Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveSetSame asSet.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedIteratorin 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: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
-
checkedToArray
public Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveSetSame asSet.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedToArrayin 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:ActiveSetSame asSet.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedToArrayin interfaceActiveSet- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-