Class AbstractListDecorator
- java.lang.Object
-
- org.apache.commons.collections.collection.AbstractCollectionDecorator
-
- org.apache.commons.collections.list.AbstractListDecorator
-
- All Implemented Interfaces:
java.lang.Iterable
,java.util.Collection
,java.util.List
- Direct Known Subclasses:
AbstractSerializableListDecorator
public abstract class AbstractListDecorator extends AbstractCollectionDecorator implements java.util.List
Decorates anotherList
to provide additional behaviour.Methods are forwarded directly to the decorated list.
- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, java.lang.Object object)
boolean
addAll(int index, java.util.Collection coll)
java.lang.Object
get(int index)
int
indexOf(java.lang.Object object)
int
lastIndexOf(java.lang.Object object)
java.util.ListIterator
listIterator()
java.util.ListIterator
listIterator(int index)
java.lang.Object
remove(int index)
java.lang.Object
set(int index, java.lang.Object object)
java.util.List
subList(int fromIndex, int toIndex)
-
-
-
Method Detail
-
add
public void add(int index, java.lang.Object object)
- Specified by:
add
in interfacejava.util.List
-
addAll
public boolean addAll(int index, java.util.Collection coll)
- Specified by:
addAll
in interfacejava.util.List
-
get
public java.lang.Object get(int index)
- Specified by:
get
in interfacejava.util.List
-
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
indexOf
in interfacejava.util.List
-
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOf
in interfacejava.util.List
-
listIterator
public java.util.ListIterator listIterator()
- Specified by:
listIterator
in interfacejava.util.List
-
listIterator
public java.util.ListIterator listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List
-
remove
public java.lang.Object remove(int index)
- Specified by:
remove
in interfacejava.util.List
-
set
public java.lang.Object set(int index, java.lang.Object object)
- Specified by:
set
in interfacejava.util.List
-
subList
public java.util.List subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List
-
-