public class FilteringListIterator<T> extends DelegatingIterator<T,java.util.ListIterator<T>,T> implements java.util.ListIterator<T>
ListIterator that provides a filtered view of another ListIterator. All operations are supported
except add(T).iterator| Constructor and Description |
|---|
FilteringListIterator(java.util.ListIterator<T> iterator,
java.util.function.Predicate<? super T> predicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<T>public int nextIndex()
nextIndex in interface java.util.ListIterator<T>public int previousIndex()
previousIndex in interface java.util.ListIterator<T>public void remove()