public class PeekableIteratorWrapper<T> extends java.lang.Object implements PeekableIterator<T>
EMPTY
Constructor and Description |
---|
PeekableIteratorWrapper(java.util.Iterator<? extends T> iterator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
T |
peek() |
void |
remove() |
public PeekableIteratorWrapper(java.util.Iterator<? extends T> iterator)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T peek()
peek
in interface PeekableIterator<T>
Iterator.hasNext()
returned false might throw NoSuchElementException
.public void remove()
remove
in interface java.util.Iterator<T>