protected class BasicEMap.BasicEMapIterator<U>
extends java.lang.Object
implements java.util.Iterator<U>
| Modifier and Type | Field and Description |
|---|---|
protected int |
cursor
The cursor in the entry data.
|
protected int |
entryCursor
The cursor in the list of entries.
|
protected int |
expectedModCount
The modification count expected of the map.
|
protected int |
lastCursor
The last cursor in the entry data.
|
protected int |
lastEntryCursor
The cursor in the list of entries.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns whether there are more objects.
|
U |
next()
Returns the next object and advances the iterator.
|
void |
remove()
Removes the entry of the last object returned by
next() from the map,
it's an optional operation. |
protected void |
scan()
Scans to the new entry.
|
protected U |
yield(BasicEMap.Entry<K,V> entry)
Called to yield the iterator result for the entry.
|
protected int cursor
protected int entryCursor
protected int lastCursor
protected int lastEntryCursor
protected int expectedModCount
protected U yield(BasicEMap.Entry<K,V> entry)
entry - the entry.protected void scan()
public boolean hasNext()
hasNext in interface java.util.Iterator<U>public U next()
next in interface java.util.Iterator<U>java.util.NoSuchElementException - if the iterator is done.public void remove()
next() from the map,
it's an optional operation.remove in interface java.util.Iterator<U>java.lang.IllegalStateException - if next has not yet been called,
or remove has already been called after the last call to next.Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature