Class AbstractHashedMap.HashIterator<K,V>
java.lang.Object
org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K,V>
- Type Parameters:
K
- the type of the keys in the mapV
- the type of the values in the map
- Direct Known Subclasses:
AbstractHashedMap.EntrySetIterator
,AbstractHashedMap.HashMapIterator
,AbstractHashedMap.KeySetIterator
,AbstractHashedMap.ValuesIterator
- Enclosing class:
AbstractHashedMap<K,
V>
Base Iterator.
- Since:
- 3.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HashIterator
(AbstractHashedMap<K, V> parent) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractHashedMap.HashEntry
<K, V> Gets the current entry.boolean
hasNext()
Tests whether there is a next entry.protected AbstractHashedMap.HashEntry
<K, V> Gets the next entry.void
remove()
Removes the current element.toString()
-
Constructor Details
-
HashIterator
Constructs a new instance.- Parameters:
parent
- The parent AbstractHashedMap.
-
-
Method Details
-
currentEntry
Gets the current entry.- Returns:
- the current entry.
-
hasNext
Tests whether there is a next entry.- Returns:
- whether there is a next entry.
-
nextEntry
Gets the next entry.- Returns:
- the next entry.
-
remove
Removes the current element. -
toString
-