Package org.apache.commons.collections4.map

# Class AbstractHashedMap.KeySetIterator<K>

java.lang.Object
org.apache.commons.collections4.map.AbstractHashedMap.HashIterator<K,Object>
org.apache.commons.collections4.map.AbstractHashedMap.KeySetIterator<K>

Type Parameters:
  `K` - The type of elements maintained by this set

All Implemented Interfaces:
  `Iterator<K>`

Enclosing class:
  `AbstractHashedMap<K,V>`

protected static class AbstractHashedMap.KeySetIterator<K> extends AbstractHashedMap.HashIterator<K,Object> implements Iterator<K>
KeySet iterator.

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `KeySetIterator(AbstractHashedMap<K,?> parent)`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `K`
  `next()`

  ### Methods inherited from class org.apache.commons.collections4.map.AbstractHashedMap.HashIterator

  `currentEntry, hasNext, nextEntry, remove, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, hasNext, remove`

- ## Constructor Details

  - ### KeySetIterator

    protected KeySetIterator(AbstractHashedMap<K,?> parent)
    Constructs a new instance.
    Parameters:
      `parent` - The parent AbstractHashedMap.

- ## Method Details

  - ### next

    public K next()
    Specified by:
      `next` in interface `Iterator<K>`