Class ConcurrentLinkedHashMap.KeyIterator

java.lang.Object
com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.KeyIterator
All Implemented Interfaces:
Iterator<K>
Enclosing class:
ConcurrentLinkedHashMap<K,V>

final class ConcurrentLinkedHashMap.KeyIterator extends Object implements Iterator<K>
An adapter to safely externalize the key iterator.
  • Field Details

    • iterator

      final Iterator<K> iterator
    • current

      K current
  • Constructor Details

    • KeyIterator

      KeyIterator()
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<K>
    • next

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

      public void remove()
      Specified by:
      remove in interface Iterator<K>