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: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
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