Package org.codehaus.plexus.collections
Class DefaultActiveList
- java.lang.Object
-
- org.codehaus.plexus.collections.AbstractActiveList
-
- org.codehaus.plexus.collections.DefaultActiveList
-
- All Implemented Interfaces:
java.lang.Iterable,java.util.Collection,java.util.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
Constructors Constructor Description DefaultActiveList()DefaultActiveList(org.codehaus.plexus.PlexusContainer container, java.lang.Class role)DefaultActiveList(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckedContains(java.lang.Object value)Same asList.contains(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedContainsAll(java.util.Collection collection)Same asList.containsAll(Collection), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.lang.ObjectcheckedGet(int index)Same asList.get(int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedIndexOf(java.lang.Object value)Same asList.indexOf(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancheckedIsEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.java.util.IteratorcheckedIterator()Same asList.iterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedLastIndexOf(java.lang.Object value)Same asList.lastIndexOf(Object), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.ListIteratorcheckedListIterator()Same asList.listIterator(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.util.ListIteratorcheckedListIterator(int index)Same asList.listIterator(int), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.intcheckedSize()Same semantics asCollection.size()orMap.size(), except this method will throw aComponentLookupExceptionif one or more of the elements collected here fails during lookup.java.util.ListcheckedSubList(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.java.lang.Object[]checkedToArray()Same asList.toArray(), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.java.lang.Object[]checkedToArray(java.lang.Object[] array)Same asList.toArray(Object[]), except this method will throw aComponentLookupExceptionif one or more elements in the set fail during lookup.booleancontains(java.lang.Object value)booleancontainsAll(java.util.Collection collection)java.lang.Objectget(int index)intindexOf(java.lang.Object value)booleanisEmpty()Same semantics asCollection.isEmpty()orMap.isEmpty().java.util.Iteratoriterator()intlastIndexOf(java.lang.Object value)java.util.ListIteratorlistIterator()java.util.ListIteratorlistIterator(int index)intsize()Same semantics asCollection.size()orMap.size().java.util.ListsubList(int fromIndex, int toIndex)java.lang.Object[]toArray()java.lang.Object[]toArray(java.lang.Object[] array)-
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, setRole
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
getRole
-
Methods inherited from interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
contextualize
-
-
-
-
Method Detail
-
checkedContains
public boolean checkedContains(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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(java.util.Collection collection) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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 java.lang.Object checkedGet(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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 java.util.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(java.lang.Object value) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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 java.util.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 java.util.ListIterator checkedListIterator(int index) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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 java.util.List checkedSubList(int fromIndex, int toIndex) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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 java.lang.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 java.lang.Object[] checkedToArray(java.lang.Object[] array) throws org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionDescription 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
public boolean contains(java.lang.Object value)
- Specified by:
containsin interfacejava.util.Collection- Specified by:
containsin interfacejava.util.List
-
containsAll
public boolean containsAll(java.util.Collection collection)
- Specified by:
containsAllin interfacejava.util.Collection- Specified by:
containsAllin interfacejava.util.List
-
get
public java.lang.Object get(int index)
- Specified by:
getin interfacejava.util.List
-
indexOf
public int indexOf(java.lang.Object value)
- Specified by:
indexOfin interfacejava.util.List
-
isEmpty
public boolean isEmpty()
Description copied from interface:ActiveCollectionSame semantics asCollection.isEmpty()orMap.isEmpty().- Specified by:
isEmptyin interfaceActiveCollection- Specified by:
isEmptyin interfacejava.util.Collection- Specified by:
isEmptyin interfacejava.util.List
-
iterator
public java.util.Iterator iterator()
- Specified by:
iteratorin interfacejava.util.Collection- Specified by:
iteratorin interfacejava.lang.Iterable- Specified by:
iteratorin interfacejava.util.List
-
lastIndexOf
public int lastIndexOf(java.lang.Object value)
- Specified by:
lastIndexOfin interfacejava.util.List
-
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIteratorin interfacejava.util.List
-
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List
-
size
public int size()
Description copied from interface:ActiveCollectionSame semantics asCollection.size()orMap.size().- Specified by:
sizein interfaceActiveCollection- Specified by:
sizein interfacejava.util.Collection- Specified by:
sizein interfacejava.util.List
-
subList
public java.util.List subList(int fromIndex, int toIndex)- Specified by:
subListin interfacejava.util.List
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection- Specified by:
toArrayin interfacejava.util.List
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] array)
- Specified by:
toArrayin interfacejava.util.Collection- Specified by:
toArrayin interfacejava.util.List
-
-