Class NonBlockingHashMapLong.IteratorLong

java.lang.Object
zombie.core.Collections.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 Details

    • IteratorLong

      public IteratorLong()
      A new IteratorLong
  • Method Details

    • 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>