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)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final ListIterator delegate
public FilterListIterator(ListIterator delegate)
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public Object next()
delegate
.ListIterator.next()
next
in interface Iterator
next
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object o)
set
in interface ListIterator
public void add(Object o)
add
in interface ListIterator
Copyright © 2001–2014. All rights reserved.