public abstract class FilterListIterator extends Object implements 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 ListIterator |
delegate |
| Constructor and Description |
|---|
FilterListIterator(ListIterator delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object o)
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
Object |
next()
Calls
delegate.ListIterator.next() |
int |
nextIndex()
|
Object |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(Object o)
|
protected final ListIterator delegate
public FilterListIterator(ListIterator delegate)
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
delegate.ListIterator.next()next in interface Iteratornext in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void set(Object o)
set in interface ListIteratorpublic void add(Object o)
add in interface ListIteratorCopyright © 2001-2012. All Rights Reserved.