public class FilterIterator<T> extends Object implements Iterator<T>
FilterIterator filters and maps a source
Iterator to generate a new one.| Modifier and Type | Class and Description |
|---|---|
static class |
FilterIterator.Filter<T> |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
done |
(package private) FilterIterator.Filter<T> |
f |
(package private) Iterator<T> |
i |
private T |
next |
| Constructor and Description |
|---|
FilterIterator(Iterator<T> i,
FilterIterator.Filter<T> f) |
| Modifier and Type | Method and Description |
|---|---|
private void |
advance() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingfinal FilterIterator.Filter<T> f
private boolean done
public FilterIterator(Iterator<T> i, FilterIterator.Filter<T> f)