public abstract class FilterListIterator
extends java.lang.Object
implements java.util.ListIterator
ListIterator that retrieves its elements from a delegate
ListIterator. The default implementation simply passes
all method invocations to the delegate.| Modifier and Type | Field and Description |
|---|---|
protected java.util.ListIterator |
delegate |
| Constructor and Description |
|---|
FilterListIterator(java.util.ListIterator delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object o)
Calls
delegate.ListIterator.add(java.lang.Object) |
boolean |
hasNext()
Calls
delegate.ListIterator.hasNext() |
boolean |
hasPrevious()
Calls
delegate.ListIterator.hasPrevious() |
java.lang.Object |
next()
Calls
delegate.ListIterator.next() |
int |
nextIndex()
Calls
delegate.ListIterator.nextIndex() |
java.lang.Object |
previous()
Calls
delegate.ListIterator.previous() |
int |
previousIndex()
Calls
delegate.ListIterator.previousIndex() |
void |
remove()
Calls
delegate.ListIterator.remove() |
void |
set(java.lang.Object o)
Calls
delegate.ListIterator.set(java.lang.Object) |
public boolean hasNext()
delegate.ListIterator.hasNext()hasNext in interface java.util.IteratorhasNext in interface java.util.ListIteratorpublic java.lang.Object next()
delegate.ListIterator.next()next in interface java.util.Iteratornext in interface java.util.ListIteratorpublic boolean hasPrevious()
delegate.ListIterator.hasPrevious()hasPrevious in interface java.util.ListIteratorpublic java.lang.Object previous()
delegate.ListIterator.previous()previous in interface java.util.ListIteratorpublic int nextIndex()
delegate.ListIterator.nextIndex()nextIndex in interface java.util.ListIteratorpublic int previousIndex()
delegate.ListIterator.previousIndex()previousIndex in interface java.util.ListIteratorpublic void remove()
delegate.ListIterator.remove()remove in interface java.util.Iteratorremove in interface java.util.ListIteratorpublic void set(java.lang.Object o)
delegate.ListIterator.set(java.lang.Object)set in interface java.util.ListIteratorpublic void add(java.lang.Object o)
delegate.ListIterator.add(java.lang.Object)add in interface java.util.ListIterator