org.apache.commons.collections.list
public abstract class AbstractListDecorator extends AbstractCollectionDecorator implements List
List
to provide additional behaviour.
Methods are forwarded directly to the decorated list.
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
Constructor Summary | |
---|---|
protected | AbstractListDecorator()
Constructor only used in deserialization, do not use otherwise. |
protected | AbstractListDecorator(List list)
Constructor that wraps (not copies).
|
Method Summary | |
---|---|
void | add(int index, Object object) |
boolean | addAll(int index, Collection coll) |
Object | get(int index) |
protected List | getList()
Gets the list being decorated.
|
int | indexOf(Object object) |
int | lastIndexOf(Object object) |
ListIterator | listIterator() |
ListIterator | listIterator(int index) |
Object | remove(int index) |
Object | set(int index, Object object) |
List | subList(int fromIndex, int toIndex) |
Since: Commons Collections 3.1
Parameters: list the list to decorate, must not be null
Throws: IllegalArgumentException if list is null
Returns: the decorated list