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>,SequencedCollection<E>
- Direct Known Subclasses:
AbstractSerializableListDecorator
public abstract class AbstractListDecorator<E>
extends AbstractCollectionDecorator<E>
implements List<E>
Decorates another
List to provide additional behaviour.
Methods are forwarded directly to the decorated list.
- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> coll) booleanget(int index) inthashCode()intintlastIndexOf(Object object) listIterator(int index) remove(int index) 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, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, addAll, addFirst, addLast, clear, contains, containsAll, getFirst, getLast, isEmpty, iterator, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Method Details
-
equals
-
hashCode
public int hashCode() -
add
-
addAll
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
remove
-
set
-
subList
-