Class AbstractListDecorator<E>
- java.lang.Object
-
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
-
- org.apache.commons.collections4.list.AbstractListDecorator<E>
-
- Type Parameters:
E
- the type of the elements in the list
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.List<E>
- Direct Known Subclasses:
AbstractSerializableListDecorator
public abstract class AbstractListDecorator<E> extends AbstractCollectionDecorator<E> implements java.util.List<E>
Decorates anotherList
to provide additional behaviour.Methods are forwarded directly to the decorated list.
- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, E object)
boolean
addAll(int index, java.util.Collection<? extends E> coll)
boolean
equals(java.lang.Object object)
E
get(int index)
int
hashCode()
int
indexOf(java.lang.Object object)
int
lastIndexOf(java.lang.Object object)
java.util.ListIterator<E>
listIterator()
java.util.ListIterator<E>
listIterator(int index)
E
remove(int index)
E
set(int index, E object)
java.util.List<E>
subList(int fromIndex, int toIndex)
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object object)
-
hashCode
public int hashCode()
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> coll)
- Specified by:
addAll
in interfacejava.util.List<E>
-
indexOf
public int indexOf(java.lang.Object object)
- Specified by:
indexOf
in interfacejava.util.List<E>
-
lastIndexOf
public int lastIndexOf(java.lang.Object object)
- Specified by:
lastIndexOf
in interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<E>
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<E>
-
-