org.cliffc.high_scale_lib
Class NonBlockingHashMapLong.IteratorLong

java.lang.Object
  extended by org.cliffc.high_scale_lib.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.


Constructor Summary
NonBlockingHashMapLong.IteratorLong()
          A new IteratorLong
 
Method Summary
 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 primitive long.
 void remove()
          Remove last key returned by next() or nextLong().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonBlockingHashMapLong.IteratorLong

public NonBlockingHashMapLong.IteratorLong()
A new IteratorLong

Method Detail

remove

public void remove()
Remove last key returned by next() or nextLong().

Specified by:
remove in interface Iterator<Long>

next

public Long next()
Auto-box and return the next key.

Specified by:
next in interface Iterator<Long>

nextLong

public long nextLong()
Return the next key as a primitive long.


hasNext

public boolean hasNext()
True if there are more keys to iterate over.

Specified by:
hasNext in interface Iterator<Long>

nextElement

public Long nextElement()
Auto-box and return the next key.

Specified by:
nextElement in interface Enumeration<Long>

hasMoreElements

public boolean hasMoreElements()
True if there are more keys to iterate over.

Specified by:
hasMoreElements in interface Enumeration<Long>