T
- The element type of the list iteratorIterator<T>
, ListIterator<T>
ReverseListIterator
public 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 | Description |
---|---|---|
protected ListIterator<T> |
delegate |
Constructor | Description |
---|---|
FilterListIterator(ListIterator<T> delegate) |
Modifier and Type | Method | 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) |
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–2019. All rights reserved.