private class OpenHashMap.MapIterator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
curr
The last entry that was returned (or -1 if we did not iterate or used
Iterator.remove()). |
(package private) int |
index
The current index (in the sense of a
ListIterator). |
(package private) int |
next
The entry that will be returned by the next call to
ListIterator.next() (or null if no next entry exists). |
(package private) int |
prev
The entry that will be returned by the next call to
ListIterator.previous() (or null if no previous entry exists). |
| Modifier | Constructor and Description |
|---|---|
private |
MapIterator() |
private |
MapIterator(java.lang.Object from) |
| Modifier and Type | Method and Description |
|---|---|
int |
back(int n) |
private void |
ensureIndexKnown() |
boolean |
hasNext() |
boolean |
hasPrevious() |
int |
nextEntry() |
int |
nextIndex() |
int |
previousEntry() |
int |
previousIndex() |
void |
remove() |
int |
skip(int n) |
int prev
ListIterator.previous() (or null if no previous entry exists).int next
ListIterator.next() (or null if no next entry exists).int curr
Iterator.remove()).int index
ListIterator). Note that this value is not meaningful when this iterator has been created using the nonempty constructor.private MapIterator()
private MapIterator(java.lang.Object from)
public boolean hasNext()
public boolean hasPrevious()
private void ensureIndexKnown()
public int nextIndex()
public int previousIndex()
public int nextEntry()
public int previousEntry()
public void remove()
public int skip(int n)
public int back(int n)