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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int i, Collection<? extends T> collection) boolean
addAll
(Collection<? extends T> collection) protected boolean
boolean
boolean
containsAll
(Collection<?> collection) boolean
get
(int i) int
hashCode()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object object) listIterator
(int index) protected void
remove
(int i) boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<X> X[]
toArray
(X[] ts) Methods inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
clear, getComponentDescriptorMap, lookup
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
equals
-
hashCode
public int hashCode() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
checkUpdate
protected boolean checkUpdate()- Overrides:
checkUpdate
in classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()- Specified by:
releaseAllCallback
in classAbstractComponentCollection<T>
-