E
- type of element of the listpublic class IteratorImpl<E>
extends java.lang.Object
implements java.util.Iterator<E>
Iterator
Modifier and Type | Method and Description |
---|---|
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.
|
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>