Package org.jctools.maps
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 theIterator
andEnumeration
interfaces, generified to theLong
class and supporting a non-auto-boxingnextLong()
function.
-
-
Constructor Summary
Constructors Constructor Description IteratorLong()
A new IteratorLong
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreElements()
True if there are more keys to iterate over.boolean
hasNext()
True if there are more keys to iterate over.Long
next()
Auto-box and return the next key.Long
nextElement()
Auto-box and return the next key.long
nextLong()
Return the next key as a primitivelong
.void
remove()
Remove last key returned bynext()
ornextLong()
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Enumeration
asIterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
remove
public void remove()
Remove last key returned bynext()
ornextLong()
.
-
next
public Long next()
Auto-box and return the next key.
-
nextLong
public long nextLong()
Return the next key as a primitivelong
.
-
hasNext
public boolean hasNext()
True if there are more keys to iterate over.
-
nextElement
public Long nextElement()
Auto-box and return the next key.- Specified by:
nextElement
in interfaceEnumeration<Long>
-
hasMoreElements
public boolean hasMoreElements()
True if there are more keys to iterate over.- Specified by:
hasMoreElements
in interfaceEnumeration<Long>
-
-