Class AbstractHashedMap.HashIterator
- java.lang.Object
-
- org.apache.commons.collections.map.AbstractHashedMap.HashIterator
-
- All Implemented Interfaces:
Iterator
- Direct Known Subclasses:
AbstractHashedMap.EntrySetIterator
,AbstractHashedMap.HashMapIterator
,AbstractHashedMap.ValuesIterator
- Enclosing class:
- AbstractHashedMap
protected abstract static class AbstractHashedMap.HashIterator extends Object implements Iterator
Base Iterator
-
-
Field Summary
Fields Modifier and Type Field Description protected int
expectedModCount
The modification count expectedprotected int
hashIndex
The current index into the array of bucketsprotected AbstractHashedMap.HashEntry
last
The last returned entryprotected AbstractHashedMap.HashEntry
next
The next entryprotected AbstractHashedMap
parent
The parent map
-
Constructor Summary
Constructors Modifier Constructor Description protected
HashIterator(AbstractHashedMap parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHashedMap.HashEntry
currentEntry()
boolean
hasNext()
protected AbstractHashedMap.HashEntry
nextEntry()
void
remove()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, next
-
-
-
-
Field Detail
-
parent
protected final AbstractHashedMap parent
The parent map
-
hashIndex
protected int hashIndex
The current index into the array of buckets
-
last
protected AbstractHashedMap.HashEntry last
The last returned entry
-
next
protected AbstractHashedMap.HashEntry next
The next entry
-
expectedModCount
protected int expectedModCount
The modification count expected
-
-
Constructor Detail
-
HashIterator
protected HashIterator(AbstractHashedMap parent)
-
-
Method Detail
-
nextEntry
protected AbstractHashedMap.HashEntry nextEntry()
-
currentEntry
protected AbstractHashedMap.HashEntry currentEntry()
-
-