| java.lang.Object org.archive.util.iterator.LookaheadIterator
LookaheadIterator | abstract public class LookaheadIterator implements Iterator<T>(Code) | | Superclass for Iterators which must probe ahead to know if
a 'next' exists, and thus have a cached next between a call
to hasNext() and next().
author: gojomo |
Field Summary | |
protected T | next |
Method Summary | |
public boolean | hasNext() Test whether any items remain; loads next item into
holding 'next' field. | abstract protected boolean | lookahead() Caches the next item if available. | public T | next() Return the next item. | public void | remove() |
lookahead | abstract protected boolean lookahead()(Code) | | Caches the next item if available.
true if there was a next item to cache, false otherwise |
remove | public void remove()(Code) | | |
|
|