public abstract class AbstractListDecorator extends AbstractCollectionDecorator implements List
List
to provide additional behaviour.
Methods are forwarded directly to the decorated list.
collection
Modifier | Constructor and Description |
---|---|
protected |
AbstractListDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractListDecorator(List list)
Constructor that wraps (not copies).
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object object) |
boolean |
addAll(int index,
Collection coll) |
Object |
get(int index) |
protected List |
getList()
Gets the list being decorated.
|
int |
indexOf(Object object) |
int |
lastIndexOf(Object object) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
Object |
set(int index,
Object object) |
List |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
protected AbstractListDecorator()
protected AbstractListDecorator(List list)
list
- the list to decorate, must not be nullIllegalArgumentException
- if list is nullprotected List getList()
public boolean addAll(int index, Collection coll)
public int lastIndexOf(Object object)
lastIndexOf
in interface List
public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int index)
listIterator
in interface List
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.