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.Object
Base Iterator
-
-
Field Summary
Fields Modifier and Type Field Description private int
expectedModCount
The modification count expectedprivate int
hashIndex
The current index into the array of bucketsprivate AbstractHashedMap.HashEntry<K,V>
last
The last returned entryprivate AbstractHashedMap.HashEntry<K,V>
next
The next entryprivate AbstractHashedMap<K,V>
parent
The parent map
-
Constructor Summary
Constructors Modifier Constructor Description protected
HashIterator(AbstractHashedMap<K,V> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHashedMap.HashEntry<K,V>
currentEntry()
boolean
hasNext()
protected AbstractHashedMap.HashEntry<K,V>
nextEntry()
void
remove()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-