public interface PeekableIterator<T>
extends java.util.Iterator<T>
peek()
the current element without moving the cursor.Modifier and Type | Field and Description |
---|---|
static PeekableIterator |
EMPTY |
Modifier and Type | Method and Description |
---|---|
T |
peek() |
static final PeekableIterator EMPTY
T peek() throws java.util.NoSuchElementException
Iterator.hasNext()
returned false might throw NoSuchElementException
.java.util.NoSuchElementException