
public abstract class TerminatingIterator<T> extends LookaheadIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
iterator |
hasNext, nextItem| Constructor and Description |
|---|
TerminatingIterator(Iterator<T> iterator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
lookahead() |
abstract boolean |
terminate(T item) |
hasNext, nextremoveiteratorCopyright © 2015. All Rights Reserved.