T
- The element type of the list iteratorpublic abstract class FilterListIterator<T> extends Object implements ListIterator<T>
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<T> |
delegate |
Constructor and Description |
---|
FilterListIterator(ListIterator<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
add(T o)
|
boolean |
hasNext()
|
boolean |
hasPrevious()
|
T |
next()
Calls
delegate .ListIterator.next() |
int |
nextIndex()
|
T |
previous()
|
int |
previousIndex()
|
void |
remove()
|
void |
set(T o)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final ListIterator<T> delegate
FilterListIterator
public FilterListIterator(ListIterator<T> delegate)
public boolean hasNext()
public T next()
delegate
.ListIterator.next()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<T>
public T previous()
previous
in interface ListIterator<T>
public int nextIndex()
nextIndex
in interface ListIterator<T>
public int previousIndex()
previousIndex
in interface ListIterator<T>
public void remove()
public void set(T o)
set
in interface ListIterator<T>
public void add(T o)
add
in interface ListIterator<T>
Copyright © 2001–2016. All rights reserved.