public class PeekIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Constructor and Description |
---|
PeekIterator(java.util.Iterator<T> underlyingIterator) |
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()