public class CloneableMapIterator<E> extends java.lang.Object implements CloneableIterator<E>
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Iterator<E> |
iter |
(package private) E |
last |
(package private) java.util.TreeMap<E,?> |
map |
(package private) E |
next |
(package private) java.lang.Object |
start |
Constructor and Description |
---|
CloneableMapIterator(java.util.TreeMap<E,?> map,
E start) |
Modifier and Type | Method and Description |
---|---|
CloneableMapIterator<E> |
clone(java.lang.Object modifier)
clone the iterator using a modifier
the modifier can be i.e.
|
void |
close()
a CloneableIterator should be closed after usage to free resources
|
boolean |
hasNext() |
E |
next() |
void |
remove() |
java.util.TreeMap<E,?> map
E next
E last
java.lang.Object start
java.util.Iterator<E> iter
public CloneableMapIterator<E> clone(java.lang.Object modifier)
CloneableIterator
clone
in interface CloneableIterator<E>
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
public void close()
CloneableIterator
close
in interface CloneableIterator<E>