Class: java.util.concurrent.ConcurrentHashMap.KeyIterator
- final class ConcurrentHashMap.KeyIterator
- extends ConcurrentHashMap<K, V>.HashIterator
- implements Iterator<K>, Enumeration<K>
Inheritance
Superclass tree:- java.lang.Object
- java.util.concurrent.ConcurrentHashMap<K, V>.HashIterator
- java.util.concurrent.ConcurrentHashMap.KeyIterator
- Iterator<K>
- Enumeration<K>
Methods
-
ConcurrentHashMap.KeyIteratortop
ConcurrentHashMap.KeyIterator() -
nexttop
public K next()Returns the next element in the iteration. Calling this method repeatedly until the java.util.Iterator.hasNext() method returns false will return each element in the underlying collection exactly once. -
nextElementtop
public K nextElement()Returns the next element of this enumeration if this enumeration object has at least one more element to provide.- Specified by:
- nextElement from Enumeration<K>
