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 map
V - 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 Object
Base Iterator.
  • Field Details

  • Constructor Details

    • HashIterator

      protected HashIterator(AbstractHashedMap<K,V> parent)
      Constructs a new instance.
      Parameters:
      parent - The parent AbstractHashedMap.
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object