public class NonBlockingHashMapLong.IteratorLong
extends java.lang.Object
implements java.util.Iterator<java.lang.Long>, java.util.Enumeration<java.lang.Long>
Iterator and Enumeration
interfaces, generified to the Long class and supporting a
non-auto-boxing nextLong() function.| Modifier and Type | Field and Description |
|---|---|
private NonBlockingHashMapLong.SnapshotV |
_ss |
| Constructor and Description |
|---|
IteratorLong()
A new IteratorLong
|
| Modifier and Type | Method and 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 primitive
long. |
void |
remove()
Remove last key returned by
next() or nextLong(). |
private final NonBlockingHashMapLong.SnapshotV _ss
public void remove()
next() or nextLong().remove in interface java.util.Iterator<java.lang.Long>public java.lang.Long next()
next in interface java.util.Iterator<java.lang.Long>public long nextLong()
long.public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public java.lang.Long nextElement()
nextElement in interface java.util.Enumeration<java.lang.Long>public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<java.lang.Long>