T
- The type of the list that this wrapper wraps.public class DirtyListWrapper<T> extends DirtyCollectionWrapper<T> implements Dirtyable, List<T>
List
implementation that wraps another list, intercepting
modifications to the list structure and reporting on weather or not the list
has been modified, and also checking list elements for modification.Constructor and Description |
---|
DirtyListWrapper(List<T> delegate)
Create a DirtyListWrapper that wraps a getDelegate().
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> c) |
T |
get(int index) |
protected List<T> |
getDelegate() |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
T |
set(int index,
T element) |
List<T> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, clearDirty, contains, containsAll, equals, getDirtyFlag, hashCode, isDirty, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clearDirty, isDirty
public boolean addAll(int index, Collection<? extends T> c)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<T>
public ListIterator<T> listIterator()
listIterator
in interface List<T>
public ListIterator<T> listIterator(int index)
listIterator
in interface List<T>
protected List<T> getDelegate()
getDelegate
in class DirtyCollectionWrapper<T>
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.