public class PeekIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
PeekIterator(java.util.Iterator<T> underlyingIterator) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
getUnderlyingIterator() |
boolean |
hasNext() |
T |
next() |
T |
peek() |
void |
remove()
Unsupported
|
public PeekIterator(java.util.Iterator<T> underlyingIterator)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public T peek()
public void remove()
remove in interface java.util.Iterator<T>public java.util.Iterator<T> getUnderlyingIterator()