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>
protected abstract static class AbstractHashedMap.HashIterator<K,V> extends java.lang.Object
Base Iterator.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHashIterator(AbstractHashedMap<K,V> parent)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractHashedMap.HashEntry<K,V>currentEntry()Gets the current entry.booleanhasNext()Tests whether there is a next entry.protected AbstractHashedMap.HashEntry<K,V>nextEntry()Gets the next entry.voidremove()Removes the current element.java.lang.StringtoString()
-
-
-
Constructor Detail
-
HashIterator
protected HashIterator(AbstractHashedMap<K,V> parent)
Constructs a new instance.- Parameters:
parent- The parent AbstractHashedMap.
-
-
Method Detail
-
currentEntry
protected AbstractHashedMap.HashEntry<K,V> currentEntry()
Gets the current entry.- Returns:
- the current entry.
-
hasNext
public boolean hasNext()
Tests whether there is a next entry.- Returns:
- whether there is a next entry.
-
nextEntry
protected AbstractHashedMap.HashEntry<K,V> nextEntry()
Gets the next entry.- Returns:
- the next entry.
-
remove
public void remove()
Removes the current element.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-