E - The type of element on which this cursor will iteratepublic class CursorIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
available
A flag used to store the cursor state
|
private Cursor<E> |
cursor
The inner cursor we will iterate
|
| Constructor and Description |
|---|
CursorIterator(Cursor<E> cursor)
Creates a new instance of CursorIterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |