public abstract class

AbstractListDecorator

extends AbstractCollectionDecorator
implements List<E>
java.lang.Object
   ↳ org.apache.commons.collections.collection.AbstractCollectionDecorator
     ↳ org.apache.commons.collections.list.AbstractListDecorator
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Decorates another List to provide additional behaviour.

Methods are forwarded directly to the decorated list.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
Protected Constructors
AbstractListDecorator()
Constructor only used in deserialization, do not use otherwise.
AbstractListDecorator(List list)
Constructor that wraps (not copies).
Public Methods
void add(int index, Object object)
boolean addAll(int index, Collection coll)
Object get(int index)
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)
Protected Methods
List getList()
Gets the list being decorated.
[Expand]
Inherited Methods
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List

Protected Constructors

protected AbstractListDecorator ()

Constructor only used in deserialization, do not use otherwise.

protected AbstractListDecorator (List list)

Constructor that wraps (not copies).

Parameters
list the list to decorate, must not be null
Throws
IllegalArgumentException if list is null

Public Methods

public void add (int index, Object object)

public boolean addAll (int index, Collection coll)

public Object get (int index)

public int indexOf (Object object)

public int lastIndexOf (Object object)

public ListIterator listIterator ()

public ListIterator listIterator (int index)

public Object remove (int index)

public Object set (int index, Object object)

public List subList (int fromIndex, int toIndex)

Protected Methods

protected List getList ()

Gets the list being decorated.

Returns
  • the decorated list