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 another 
List to provide additional behavior.
 Methods are forwarded directly to the decorated list.
- Since:
- 3.0
- See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConstructor only used in deserialization, do not use otherwise.protectedAbstractListDecorator(List<E> list) Constructor that wraps (not copies).
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> coll) Gets the list being decorated.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.AbstractCollectionDecoratoradd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeIf, retainAll, setCollection, size, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream
- 
Constructor Details- 
AbstractListDecoratorprotected AbstractListDecorator()Constructor only used in deserialization, do not use otherwise.- Since:
- 3.1
 
- 
AbstractListDecoratorConstructor that wraps (not copies).- Parameters:
- list- the list to decorate, must not be null
- Throws:
- NullPointerException- if list is null
 
 
- 
- 
Method Details- 
add
- 
addAll
- 
decorated
- 
equals
- 
get
- 
hashCode
- 
indexOf
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- List<E>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<E>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<E>
 
- 
remove
- 
set
- 
subList
 
-