Constructor and Description |
---|
LookaheadIterator(Iterable<? extends T> things) |
LookaheadIterator(Iterator<? extends T> it) |
LookaheadIterator(T... things) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
boolean |
hasNext(int index) |
T |
lookahead(int index)
Returns the object delivered by the last of (index+1) calls of
next() ,
as defined with the original iterator. |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
@SafeVarargs public LookaheadIterator(T... things)
public boolean hasNext(int index)
public T lookahead(int index)
next()
,
as defined with the original iterator.see also the complete user documentation .