Package org.codehaus.plexus.collections
Interface ActiveSet
-
- All Superinterfaces:
ActiveCollection
,java.util.Collection
,java.lang.Iterable
,java.util.Set
- All Known Implementing Classes:
AbstractActiveSet
,DefaultActiveSet
public interface ActiveSet extends ActiveCollection, java.util.Set
Collection withSet
semantics, which is backed by aPlexusContainer
instance, and retrieves a fresh batch of elements for each method call.
NOTE: All active collections are immutable, and will throw anUnsupportedOperationException
if a mutator method is called.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkedContains(java.lang.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(java.util.Collection collection)
Same asSet.containsAll(Collection)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.java.util.Iterator
checkedIterator()
Same asSet.iterator()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.java.lang.Object[]
checkedToArray()
Same asSet.toArray()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.java.lang.Object[]
checkedToArray(java.lang.Object[] array)
Same asSet.toArray(Object[])
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.-
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, getRole, isEmpty, size
-
-
-
-
Method Detail
-
checkedContains
boolean checkedContains(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Same asSet.contains(Object)
, except this method will throw aComponentLookupException
if 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(java.util.Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Same asSet.containsAll(Collection)
, except this method will throw aComponentLookupException
if 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
java.util.Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Same asSet.iterator()
, except this method will throw aComponentLookupException
if 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
java.lang.Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Same asSet.toArray()
, except this method will throw aComponentLookupException
if 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
java.lang.Object[] checkedToArray(java.lang.Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Same asSet.toArray(Object[])
, except this method will throw aComponentLookupException
if 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.
-
-