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:
Serializable,Iterable<E>,Collection<E>,List<E>
- Direct Known Subclasses:
AbstractSerializableListDecorator
public abstract class AbstractListDecorator<E> extends AbstractCollectionDecorator<E> implements List<E>
Decorates anotherListto 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 voidadd(int index, E object)booleanaddAll(int index, Collection<? extends E> coll)booleanequals(Object object)Eget(int index)inthashCode()intindexOf(Object object)intlastIndexOf(Object object)ListIterator<E>listIterator()ListIterator<E>listIterator(int index)Eremove(int index)Eset(int index, E object)List<E>subList(int fromIndex, int toIndex)-
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, size, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
-
hashCode
public int hashCode()
-
addAll
public boolean addAll(int index, Collection<? extends E> coll)
-
lastIndexOf
public int lastIndexOf(Object object)
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator()
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
public ListIterator<E> listIterator(int index)
- Specified by:
listIteratorin interfaceList<E>
-
-