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 void
add(int i, T object)
boolean
add(T object)
boolean
addAll(int i, java.util.Collection<? extends T> collection)
boolean
addAll(java.util.Collection<? extends T> collection)
protected boolean
checkUpdate()
boolean
contains(java.lang.Object object)
boolean
containsAll(java.util.Collection<?> collection)
boolean
equals(java.lang.Object o)
T
get(int i)
private java.util.List<T>
getList()
int
hashCode()
int
indexOf(java.lang.Object object)
boolean
isEmpty()
java.util.Iterator<T>
iterator()
int
lastIndexOf(java.lang.Object object)
java.util.ListIterator<T>
listIterator()
java.util.ListIterator<T>
listIterator(int index)
protected void
releaseAllCallback()
T
remove(int i)
boolean
remove(java.lang.Object object)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
T
set(int i, T object)
int
size()
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:
addAll
in 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:
indexOf
in interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOf
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<T>
-
getList
private java.util.List<T> getList()
-
checkUpdate
protected boolean checkUpdate()
- Overrides:
checkUpdate
in classAbstractComponentCollection<T>
-
releaseAllCallback
protected void releaseAllCallback()
- Specified by:
releaseAllCallback
in classAbstractComponentCollection<T>
-
-