public class DefaultActiveSet extends AbstractActiveSet implements ActiveSet, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
Constructor and Description |
---|
DefaultActiveSet() |
DefaultActiveSet(org.codehaus.plexus.PlexusContainer container,
Class role) |
DefaultActiveSet(org.codehaus.plexus.PlexusContainer container,
String role) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkedContains(Object value)
Same as
Set.contains(Object) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
boolean |
checkedContainsAll(Collection collection)
Same as
Set.containsAll(Collection) , 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. |
Iterator |
checkedIterator()
Same as
Set.iterator() , 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. |
Object[] |
checkedToArray()
Same as
Set.toArray() , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
Object[] |
checkedToArray(Object[] array)
Same as
Set.toArray(Object[]) , except this method will throw a
ComponentLookupException if one or more elements in the set fail during lookup. |
boolean |
contains(Object value) |
boolean |
containsAll(Collection collection) |
boolean |
isEmpty()
Same semantics as
Collection.isEmpty() or Map.isEmpty() . |
Iterator |
iterator() |
int |
size()
Same semantics as
Collection.size() or Map.size() . |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
add, addAll, checkedGetSet, clear, contextualize, enableLogging, getLogger, getRole, getSet, remove, removeAll, retainAll, setRole
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRole
add, addAll, clear, equals, hashCode, remove, removeAll, retainAll, spliterator
parallelStream, removeIf, stream
public DefaultActiveSet()
public DefaultActiveSet(org.codehaus.plexus.PlexusContainer container, Class role)
public DefaultActiveSet(org.codehaus.plexus.PlexusContainer container, String role)
public boolean contains(Object value)
contains
in interface Collection
contains
in interface Set
public boolean containsAll(Collection collection)
containsAll
in interface Collection
containsAll
in interface Set
public boolean isEmpty()
ActiveCollection
Collection.isEmpty()
or Map.isEmpty()
.isEmpty
in interface Collection
isEmpty
in interface Set
isEmpty
in interface ActiveCollection
public Iterator iterator()
public int size()
ActiveCollection
Collection.size()
or Map.size()
.size
in interface Collection
size
in interface Set
size
in interface ActiveCollection
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] array)
toArray
in interface Collection
toArray
in interface Set
public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveSet
Set.contains(Object)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedContains
in interface ActiveSet
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public boolean checkedContainsAll(Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveSet
Set.containsAll(Collection)
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedContainsAll
in interface ActiveSet
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 Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveSet
Set.iterator()
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedIterator
in interface ActiveSet
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 Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveSet
Set.toArray()
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedToArray
in interface ActiveSet
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.public Object[] checkedToArray(Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
ActiveSet
Set.toArray(Object[])
, except this method will throw a
ComponentLookupException
if one or more elements in the set fail during lookup.checkedToArray
in interface ActiveSet
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if one or more elements of the set fail during lookup.Copyright © 2001–2016 Codehaus. All rights reserved.