Class AbstractHashedMap.HashIterator
- java.lang.Object
-
- org.apache.commons.collections.map.AbstractHashedMap.HashIterator
-
- All Implemented Interfaces:
java.util.Iterator
- Direct Known Subclasses:
AbstractHashedMap.EntrySetIterator,AbstractHashedMap.HashMapIterator,AbstractHashedMap.ValuesIterator
- Enclosing class:
- AbstractHashedMap
protected abstract static class AbstractHashedMap.HashIterator extends java.lang.Object implements java.util.IteratorBase Iterator
-
-
Field Summary
Fields Modifier and Type Field Description protected intexpectedModCountThe modification count expectedprotected inthashIndexThe current index into the array of bucketsprotected AbstractHashedMap.HashEntrylastThe last returned entryprotected AbstractHashedMap.HashEntrynextThe next entryprotected AbstractHashedMapparentThe parent map
-
Constructor Summary
Constructors Modifier Constructor Description protectedHashIterator(AbstractHashedMap parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHashedMap.HashEntrycurrentEntry()booleanhasNext()protected AbstractHashedMap.HashEntrynextEntry()voidremove()java.lang.StringtoString()
-
-
-
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
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
nextEntry
protected AbstractHashedMap.HashEntry nextEntry()
-
currentEntry
protected AbstractHashedMap.HashEntry currentEntry()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-