Class ComponentList<T>
java.lang.Object
org.codehaus.plexus.component.collections.AbstractComponentCollection<T>
org.codehaus.plexus.component.collections.ComponentList<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
- Author:
- Jason van Zyl FIXME: [jdcasey] We need to review the efficiency (in speed and memory) of this collection...
-
Field Summary
Fields inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
componentType, container, hostComponent, logger, role, roleHints -
Constructor Summary
ConstructorsConstructorDescriptionComponentList(MutablePlexusContainer container, Class<T> type, String role, List<String> roleHints, String hostComponent) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int i, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) protected booleanbooleanbooleancontainsAll(Collection<?> collection) booleanget(int i) inthashCode()intbooleanisEmpty()iterator()intlastIndexOf(Object object) listIterator(int index) protected voidremove(int i) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<X> X[]toArray(X[] ts) Methods inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
clear, getComponentDescriptorMap, lookupMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
clear, replaceAll, sort, spliterator
-
Constructor Details
-
ComponentList
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <X> X[] toArray(X[] ts) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
equals
-
hashCode
public int hashCode() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
checkUpdate
protected boolean checkUpdate()- Overrides:
checkUpdatein classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()- Specified by:
releaseAllCallbackin classAbstractComponentCollection<T>
-