Class AbstractHashedMap.HashIterator<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K,V>
-
- Direct Known Subclasses:
AbstractHashedMap.EntrySetIterator,AbstractHashedMap.HashMapIterator,AbstractHashedMap.KeySetIterator,AbstractHashedMap.ValuesIterator
- Enclosing class:
- AbstractHashedMap<K,V>
protected abstract static class AbstractHashedMap.HashIterator<K,V> extends java.lang.ObjectBase Iterator
-
-
Field Summary
Fields Modifier and Type Field Description private intexpectedModCountThe modification count expectedprivate inthashIndexThe current index into the array of bucketsprivate AbstractHashedMap.HashEntry<K,V>lastThe last returned entryprivate AbstractHashedMap.HashEntry<K,V>nextThe next entryprivate AbstractHashedMap<K,V>parentThe parent map
-
Constructor Summary
Constructors Modifier Constructor Description protectedHashIterator(AbstractHashedMap<K,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHashedMap.HashEntry<K,V>currentEntry()booleanhasNext()protected AbstractHashedMap.HashEntry<K,V>nextEntry()voidremove()java.lang.StringtoString()
-
-
-
Field Detail
-
parent
private final AbstractHashedMap<K,V> parent
The parent map
-
hashIndex
private int hashIndex
The current index into the array of buckets
-
last
private AbstractHashedMap.HashEntry<K,V> last
The last returned entry
-
next
private AbstractHashedMap.HashEntry<K,V> next
The next entry
-
expectedModCount
private int expectedModCount
The modification count expected
-
-
Constructor Detail
-
HashIterator
protected HashIterator(AbstractHashedMap<K,V> parent)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
nextEntry
protected AbstractHashedMap.HashEntry<K,V> nextEntry()
-
currentEntry
protected AbstractHashedMap.HashEntry<K,V> currentEntry()
-
remove
public void remove()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-