Package org.codehaus.plexus.collections
Class DefaultActiveList
java.lang.Object
org.codehaus.plexus.collections.AbstractActiveList
org.codehaus.plexus.collections.DefaultActiveList
- All Implemented Interfaces:
Iterable,Collection,List,ActiveCollection,ActiveList,org.codehaus.plexus.logging.LogEnabled,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class DefaultActiveList
extends AbstractActiveList
implements ActiveList, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled
-
Field Summary
Fields inherited from interface org.codehaus.plexus.collections.ActiveList
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultActiveList(org.codehaus.plexus.PlexusContainer container, Class role) DefaultActiveList(org.codehaus.plexus.PlexusContainer container, String role) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckedContains(Object value) Same asList.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsAll(Collection collection) Same asList.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.checkedGet(int index) Same asList.get(int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedIndexOf(Object value) Same asList.indexOf(Object), 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 asList.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedLastIndexOf(Object value) Same asList.lastIndexOf(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Same asList.listIterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.checkedListIterator(int index) Same asList.listIterator(int), 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.checkedSubList(int fromIndex, int toIndex) Same asList.subList(int, int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Object[]Same asList.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.Object[]checkedToArray(Object[] array) Same asList.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleanbooleancontainsAll(Collection collection) get(int index) intbooleanisEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty().iterator()intlastIndexOf(Object value) listIterator(int index) intsize()Same semantics asCollection.size()orMap.size().subList(int fromIndex, int toIndex) Object[]toArray()Object[]Methods inherited from class org.codehaus.plexus.collections.AbstractActiveList
add, add, addAll, addAll, checkedGetList, clear, contextualize, enableLogging, getList, getLogger, getRole, remove, remove, removeAll, retainAll, set, 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 java.util.List
add, add, addAll, addAll, clear, equals, hashCode, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliteratorMethods inherited from interface org.codehaus.plexus.logging.LogEnabled
enableLogging
-
Constructor Details
-
DefaultActiveList
public DefaultActiveList() -
DefaultActiveList
-
DefaultActiveList
-
-
Method Details
-
checkedContains
public boolean checkedContains(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsin interfaceActiveList- 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:ActiveListSame asList.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedContainsAllin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedGet
public Object checkedGet(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.get(int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedGetin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedIndexOf
public int checkedIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.indexOf(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedIndexOfin interfaceActiveList- 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:ActiveListSame asList.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedIteratorin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedLastIndexOf
public int checkedLastIndexOf(Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.lastIndexOf(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedLastIndexOfin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedListIterator
public ListIterator checkedListIterator() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveListSame asList.listIterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedListIteratorin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedListIterator
public ListIterator checkedListIterator(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.listIterator(int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedListIteratorin interfaceActiveList- 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
-
checkedSubList
public List checkedSubList(int fromIndex, int toIndex) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Description copied from interface:ActiveListSame asList.subList(int, int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedSubListin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
checkedToArray
public Object[] checkedToArray() throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription copied from interface:ActiveListSame asList.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedToArrayin interfaceActiveList- 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:ActiveListSame asList.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.- Specified by:
checkedToArrayin interfaceActiveList- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException- if one or more elements of the set fail during lookup.
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
get
-
indexOf
-
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 interfaceList
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
listIterator
- Specified by:
listIteratorin interfaceList
-
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 interfaceList
-
subList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-