Package org.jctools.maps
Class NonBlockingHashMapLong.IteratorLong
- java.lang.Object
-
- org.jctools.maps.NonBlockingHashMapLong.IteratorLong
-
- All Implemented Interfaces:
java.util.Enumeration<java.lang.Long>
,java.util.Iterator<java.lang.Long>
- Enclosing class:
- NonBlockingHashMapLong<TypeV>
public class NonBlockingHashMapLong.IteratorLong extends java.lang.Object implements java.util.Iterator<java.lang.Long>, java.util.Enumeration<java.lang.Long>
A class which implements theIterator
andEnumeration
interfaces, generified to theLong
class and supporting a non-auto-boxingnextLong()
function.
-
-
Field Summary
Fields Modifier and Type Field Description private NonBlockingHashMapLong.SnapshotV
_ss
-
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.java.lang.Long
next()
Auto-box and return the next key.java.lang.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()
.
-
-
-
Field Detail
-
_ss
private final NonBlockingHashMapLong.SnapshotV _ss
-
-
Method Detail
-
remove
public void remove()
Remove last key returned bynext()
ornextLong()
.- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Long>
-
next
public java.lang.Long next()
Auto-box and return the next key.- Specified by:
next
in interfacejava.util.Iterator<java.lang.Long>
-
nextLong
public long nextLong()
Return the next key as a primitivelong
.
-
hasNext
public boolean hasNext()
True if there are more keys to iterate over.- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Long>
-
nextElement
public java.lang.Long nextElement()
Auto-box and return the next key.- Specified by:
nextElement
in interfacejava.util.Enumeration<java.lang.Long>
-
hasMoreElements
public boolean hasMoreElements()
True if there are more keys to iterate over.- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<java.lang.Long>
-
-