public abstract class ListWrapper<E> extends CollectionWrapper<E> implements List<E>
ListWrapper is an abstract class designed to make it easier
to write wrappers around Lists.| Modifier | Constructor and Description |
|---|---|
protected |
ListWrapper()
Creates a
ListWrapper. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
E o) |
boolean |
addAll(int i,
Collection<? extends E> c) |
E |
get(int i) |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int i) |
E |
remove(int i) |
E |
set(int i,
E o) |
List<E> |
subList(int i,
int j) |
protected abstract List<E> |
wrapped()
Implementations should return the wrapped
List here. |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected ListWrapper()
ListWrapper.protected abstract List<E> wrapped()
List here.wrapped in class CollectionWrapper<E>public ListIterator<E> listIterator(int i)
listIterator in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public boolean addAll(int i,
Collection<? extends E> c)
Copyright (c) 2006 C. Scott Ananian