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 theIteratorandEnumerationinterfaces, generified to theLongclass 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 booleanhasMoreElements()True if there are more keys to iterate over.booleanhasNext()True if there are more keys to iterate over.java.lang.Longnext()Auto-box and return the next key.java.lang.LongnextElement()Auto-box and return the next key.longnextLong()Return the next key as a primitivelong.voidremove()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:
removein interfacejava.util.Iterator<java.lang.Long>
-
next
public java.lang.Long next()
Auto-box and return the next key.- Specified by:
nextin 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:
hasNextin interfacejava.util.Iterator<java.lang.Long>
-
nextElement
public java.lang.Long nextElement()
Auto-box and return the next key.- Specified by:
nextElementin interfacejava.util.Enumeration<java.lang.Long>
-
hasMoreElements
public boolean hasMoreElements()
True if there are more keys to iterate over.- Specified by:
hasMoreElementsin interfacejava.util.Enumeration<java.lang.Long>
-
-