K - the type of keys maintained by this mapV - the type of mapped valuesprotected abstract static class AbstractHashMap.HashIterator<K,V,T> extends Object implements Iterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
expectedModCount
The modification count expected
|
protected int |
hashIndex
The current index into the array of buckets
|
protected AbstractHashMap.HashEntry<K,V> |
last
The last returned entry
|
protected AbstractHashMap.HashEntry<K,V> |
next
The next entry
|
protected AbstractHashMap<K,V> |
parent
The parent map
|
| Modifier | Constructor and Description |
|---|---|
protected |
HashIterator(AbstractHashMap<K,V> parent)
Constructs new
AbstractHashMap.HashIterator. |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractHashMap.HashEntry<K,V> |
currentEntry()
Returns current
AbstractHashMap.HashEntry. |
boolean |
hasNext() |
protected AbstractHashMap.HashEntry<K,V> |
nextEntry()
Returns next
AbstractHashMap.HashEntry. |
void |
remove() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemaining, nextprotected final AbstractHashMap<K,V> parent
protected int hashIndex
protected AbstractHashMap.HashEntry<K,V> last
protected AbstractHashMap.HashEntry<K,V> next
protected int expectedModCount
protected HashIterator(AbstractHashMap<K,V> parent)
AbstractHashMap.HashIterator.parent - AbstractHashMapprotected AbstractHashMap.HashEntry<K,V> nextEntry()
AbstractHashMap.HashEntry.AbstractHashMap.HashEntryprotected AbstractHashMap.HashEntry<K,V> currentEntry()
AbstractHashMap.HashEntry.AbstractHashMap.HashEntryCopyright © 2020. All rights reserved.