public abstract class AbstractListDecorator extends AbstractCollectionDecorator implements java.util.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(java.util.List list)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Object object) |
boolean |
addAll(int index,
java.util.Collection coll) |
java.lang.Object |
get(int index) |
protected java.util.List |
getList()
Gets the list being decorated.
|
int |
indexOf(java.lang.Object object) |
int |
lastIndexOf(java.lang.Object object) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
java.lang.Object |
remove(int index) |
java.lang.Object |
set(int index,
java.lang.Object object) |
java.util.List |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected AbstractListDecorator()
protected AbstractListDecorator(java.util.List list)
list - the list to decorate, must not be nulljava.lang.IllegalArgumentException - if list is nullprotected java.util.List getList()
public void add(int index,
java.lang.Object object)
add in interface java.util.Listpublic boolean addAll(int index,
java.util.Collection coll)
addAll in interface java.util.Listpublic java.lang.Object get(int index)
get in interface java.util.Listpublic int indexOf(java.lang.Object object)
indexOf in interface java.util.Listpublic int lastIndexOf(java.lang.Object object)
lastIndexOf in interface java.util.Listpublic java.util.ListIterator listIterator()
listIterator in interface java.util.Listpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.Listpublic java.lang.Object remove(int index)
remove in interface java.util.Listpublic java.lang.Object set(int index,
java.lang.Object object)
set in interface java.util.Listpublic java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.