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)
Calls
delegate. |
boolean |
hasNext()
Calls
delegate. |
boolean |
hasPrevious()
Calls
delegate. |
T |
next()
Calls
delegate. |
int |
nextIndex()
Calls
delegate. |
T |
previous()
Calls
delegate. |
int |
previousIndex()
Calls
delegate. |
void |
remove()
Calls
delegate. |
void |
set(T o)
Calls
delegate. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final ListIterator<T> delegate
FilterListIteratorpublic 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(@Nullable T o)
set in interface ListIterator<T>public void add(@Nullable T o)
add in interface ListIterator<T>Copyright © 2019. All rights reserved.