E
- type of element of the listpublic class IteratorImpl<E>
extends java.lang.Object
implements java.util.Iterator<E>
Iterator
Modifier and Type | Field and Description |
---|---|
protected int |
cursor |
protected int |
lastReturn |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<E> |
getParent() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
E |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by this iterator.
|
protected java.util.List<E> getParent()
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public E next()
next
in interface java.util.Iterator<E>
public void remove()
next()
.remove
in interface java.util.Iterator<E>