Class ComponentList<T>
- java.lang.Object
-
- org.codehaus.plexus.component.collections.AbstractComponentCollection<T>
-
- org.codehaus.plexus.component.collections.ComponentList<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Collection<T>,java.util.List<T>
public class ComponentList<T> extends AbstractComponentCollection<T> implements java.util.List<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<T>components-
Fields inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
componentType, container, hostComponent, logger, role, roleHints
-
-
Constructor Summary
Constructors Constructor Description ComponentList(MutablePlexusContainer container, java.lang.Class<T> type, java.lang.String role, java.util.List<java.lang.String> roleHints, java.lang.String hostComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, T object)booleanadd(T object)booleanaddAll(int i, java.util.Collection<? extends T> collection)booleanaddAll(java.util.Collection<? extends T> collection)protected booleancheckUpdate()booleancontains(java.lang.Object object)booleancontainsAll(java.util.Collection<?> collection)booleanequals(java.lang.Object o)Tget(int i)private java.util.List<T>getList()inthashCode()intindexOf(java.lang.Object object)booleanisEmpty()java.util.Iterator<T>iterator()intlastIndexOf(java.lang.Object object)java.util.ListIterator<T>listIterator()java.util.ListIterator<T>listIterator(int index)protected voidreleaseAllCallback()Tremove(int i)booleanremove(java.lang.Object object)booleanremoveAll(java.util.Collection<?> collection)booleanretainAll(java.util.Collection<?> collection)Tset(int i, T object)intsize()java.util.List<T>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<X> X[]toArray(X[] ts)-
Methods inherited from class org.codehaus.plexus.component.collections.AbstractComponentCollection
clear, getComponentDescriptorMap, lookup
-
-
-
-
Field Detail
-
components
private java.util.List<T> components
-
-
Constructor Detail
-
ComponentList
public ComponentList(MutablePlexusContainer container, java.lang.Class<T> type, java.lang.String role, java.util.List<java.lang.String> roleHints, java.lang.String hostComponent)
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object object)
-
iterator
public java.util.Iterator<T> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <X> X[] toArray(X[] ts)
-
add
public boolean add(T object)
-
remove
public boolean remove(java.lang.Object object)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
addAll
public boolean addAll(java.util.Collection<? extends T> collection)
-
addAll
public boolean addAll(int i, java.util.Collection<? extends T> collection)- Specified by:
addAllin interfacejava.util.List<T>
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
indexOfin interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOfin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<T>
-
getList
private java.util.List<T> getList()
-
checkUpdate
protected boolean checkUpdate()
- Overrides:
checkUpdatein classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()
- Specified by:
releaseAllCallbackin classAbstractComponentCollection<T>
-
-