Package org.codehaus.plexus.collections
Interface ActiveList
- All Superinterfaces:
ActiveCollection
,Collection
,Iterable
,List
- All Known Implementing Classes:
AbstractActiveList
,DefaultActiveList
Collection with
NOTE: All active collections are immutable, and will throw an
List
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 TypeMethodDescriptionboolean
checkedContains
(Object value) Same asList.contains(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.boolean
checkedContainsAll
(Collection collection) Same asList.containsAll(Collection)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.checkedGet
(int index) Same asList.get(int)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.int
checkedIndexOf
(Object value) Same asList.indexOf(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Same asList.iterator()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.int
checkedLastIndexOf
(Object value) Same asList.lastIndexOf(Object)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Same asList.listIterator()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.checkedListIterator
(int index) Same asList.listIterator(int)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.checkedSubList
(int fromIndex, int toIndex) Same asList.subList(int, int)
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Object[]
Same asList.toArray()
, except this method will throw aComponentLookupException
if one or more elements in the set fail during lookup.Object[]
checkedToArray
(Object[] array) Same asList.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
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
ROLE
-
-
Method Details
-
checkedContains
boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.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(Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.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.
-
checkedGet
Object checkedGet(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.get(int)
, 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.
-
checkedIndexOf
int checkedIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.indexOf(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.
-
checkedIterator
Iterator checkedIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asList.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.
-
checkedLastIndexOf
int checkedLastIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.lastIndexOf(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.
-
checkedListIterator
ListIterator checkedListIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asList.listIterator()
, 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.
-
checkedListIterator
ListIterator checkedListIterator(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.listIterator(int)
, 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.
-
checkedSubList
List checkedSubList(int fromIndex, int toIndex) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.subList(int, int)
, 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
Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionSame asList.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
Object[] checkedToArray(Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Same asList.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.
-