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>
public class ComponentList<T> extends AbstractComponentCollection<T> implements 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
Constructors Constructor Description ComponentList(MutablePlexusContainer container, Class<T> type, String role, List<String> roleHints, String hostComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i, T object)
boolean
add(T object)
boolean
addAll(int i, Collection<? extends T> collection)
boolean
addAll(Collection<? extends T> collection)
protected boolean
checkUpdate()
boolean
contains(Object object)
boolean
containsAll(Collection<?> collection)
boolean
equals(Object o)
T
get(int i)
int
hashCode()
int
indexOf(Object object)
boolean
isEmpty()
Iterator<T>
iterator()
int
lastIndexOf(Object object)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
protected void
releaseAllCallback()
T
remove(int i)
boolean
remove(Object object)
boolean
removeAll(Collection<?> collection)
boolean
retainAll(Collection<?> collection)
T
set(int i, T object)
int
size()
List<T>
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
-
Methods inherited from interface java.util.List
clear, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object object)
-
toArray
public Object[] toArray()
-
toArray
public <X> X[] toArray(X[] ts)
-
add
public boolean add(T object)
-
remove
public boolean remove(Object object)
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
public boolean addAll(Collection<? extends T> collection)
-
addAll
public boolean addAll(int i, Collection<? extends T> collection)
-
removeAll
public boolean removeAll(Collection<?> collection)
-
retainAll
public boolean retainAll(Collection<?> collection)
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
checkUpdate
protected boolean checkUpdate()
- Overrides:
checkUpdate
in classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()
- Specified by:
releaseAllCallback
in classAbstractComponentCollection<T>
-
-