private abstract class DoubleOrderedMap.DoubleOrderedMapIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field and Description |
|---|---|
private int |
expectedModifications |
private int |
iteratorType |
protected DoubleOrderedMap.Node |
lastReturnedNode |
private DoubleOrderedMap.Node |
nextNode |
| Constructor and Description |
|---|
DoubleOrderedMapIterator(int type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
doGetNext() |
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove()
Removes from the underlying collection the last element
returned by the iterator.
|
private int expectedModifications
protected DoubleOrderedMap.Node lastReturnedNode
private DoubleOrderedMap.Node nextNode
private int iteratorType
DoubleOrderedMapIterator(int type)
type - protected abstract java.lang.Object doGetNext()
public final boolean hasNext()
hasNext in interface java.util.Iteratorpublic final java.lang.Object next()
throws java.util.NoSuchElementException,
java.util.ConcurrentModificationException
next in interface java.util.Iteratorjava.util.NoSuchElementException - if iteration has no more
elements.java.util.ConcurrentModificationException - if the
DoubleOrderedMap is
modified behind
the iterator's
backpublic final void remove()
throws java.lang.IllegalStateException,
java.util.ConcurrentModificationException
remove in interface java.util.Iteratorjava.lang.IllegalStateException - if the next method has not
yet been called, or the
remove method has already
been called after the last
call to the next method.java.util.ConcurrentModificationException - if the
DoubleOrderedMap is
modified behind
the iterator's
back