Class 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 the Iterator and Enumeration interfaces, generified to the Long class and supporting a non-auto-boxing nextLong() function.
    • 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 primitive long.
      void remove()
      Remove last key returned by next() or nextLong().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • IteratorLong

        public IteratorLong()
        A new IteratorLong
    • Method Detail

      • remove

        public void remove()
        Remove last key returned by next() or nextLong().
        Specified by:
        remove in interface java.util.Iterator<java.lang.Long>
      • next

        public java.lang.Long next()
        Auto-box and return the next key.
        Specified by:
        next in interface java.util.Iterator<java.lang.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 java.util.Iterator<java.lang.Long>
      • nextElement

        public java.lang.Long nextElement()
        Auto-box and return the next key.
        Specified by:
        nextElement in interface java.util.Enumeration<java.lang.Long>
      • hasMoreElements

        public boolean hasMoreElements()
        True if there are more keys to iterate over.
        Specified by:
        hasMoreElements in interface java.util.Enumeration<java.lang.Long>