Class NonBlockingHashMapLong.IteratorLong
java.lang.Object
org.jctools.maps.NonBlockingHashMapLong.IteratorLong
- All Implemented Interfaces:
Enumeration<Long>, Iterator<Long>
- Enclosing class:
NonBlockingHashMapLong<TypeV>
public class NonBlockingHashMapLong.IteratorLong
extends Object
implements Iterator<Long>, Enumeration<Long>
A class which implements the
Iterator and Enumeration
interfaces, generified to the Long class and supporting a
non-auto-boxing nextLong() function.- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if there are more keys to iterate over.booleanhasNext()True if there are more keys to iterate over.next()Auto-box and return the next key.Auto-box and return the next key.longnextLong()Return the next key as a primitivelong.voidremove()Remove last key returned bynext()ornextLong().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Enumeration
asIteratorMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
_ss
-
-
Constructor Details
-
IteratorLong
public IteratorLong()A new IteratorLong
-
-
Method Details
-
remove
public void remove()Remove last key returned bynext()ornextLong(). -
next
-
nextLong
public long nextLong()Return the next key as a primitivelong. -
hasNext
-
nextElement
Auto-box and return the next key.- Specified by:
nextElementin interfaceEnumeration<Long>
-
hasMoreElements
public boolean hasMoreElements()True if there are more keys to iterate over.- Specified by:
hasMoreElementsin interfaceEnumeration<Long>
-