org.apache.commons.collections.list
Class AbstractListDecorator
- Collection, List
public abstract class AbstractListDecorator
implements List
Decorates another
List
to provide additional behaviour.
Methods are forwarded directly to the decorated list.
$Revision: 1.4 $ $Date: 2004/06/02 21:53:02 $
add , addAll , clear , contains , containsAll , equals , getCollection , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray , toString |
AbstractListDecorator
protected AbstractListDecorator()
Constructor only used in deserialization, do not use otherwise.
AbstractListDecorator
protected AbstractListDecorator(List list)
Constructor that wraps (not copies).
list
- the list to decorate, must not be null
add
public void add(int index,
Object object)
addAll
public boolean addAll(int index,
Collection coll)
get
public Object get(int index)
getList
protected List getList()
Gets the list being decorated.
indexOf
public int indexOf(Object object)
lastIndexOf
public int lastIndexOf(Object object)
listIterator
public ListIterator listIterator()
listIterator
public ListIterator listIterator(int index)
remove
public Object remove(int index)
set
public Object set(int index,
Object object)
subList
public List subList(int fromIndex,
int toIndex)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.