Package org.codehaus.plexus.collections
Interface ActiveSet
- All Superinterfaces:
ActiveCollection,Collection,Iterable,Set
- All Known Implementing Classes:
AbstractActiveSet,DefaultActiveSet
Collection with
NOTE: All active collections are immutable, and will throw an
Set semantics, which is backed by a PlexusContainer instance,
and retrieves a fresh batch of elements for each method call.
NOTE: All active collections are immutable, and will throw an
UnsupportedOperationException if a mutator method is called.-
Field Summary
Fields -
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.Same asSet.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail 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.Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, getRole, isEmpty, sizeMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
ROLE
-
-
Method Details
-
checkedContains
boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asSet.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedContainsAll
boolean checkedContainsAll(Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asSet.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedIterator
Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asSet.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedToArray
Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asSet.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedToArray
Object[] checkedToArray(Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asSet.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-