public abstract class LookaheadIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
LookaheadIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Test whether any items remain; loads next item into
holding 'next' field.
|
protected abstract boolean |
lookahead()
Caches the next item if available.
|
T |
next()
Return the next item.
|
void |
remove() |
protected T next
public boolean hasNext()
hasNext in interface java.util.Iterator<T>Iterator.hasNext()protected abstract boolean lookahead()
public T next()
next in interface java.util.Iterator<T>Iterator.next()public void remove()
remove in interface java.util.Iterator<T>Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.