Class Long2ObjectNonBlockingMap.IteratorLong

java.lang.Object
cn.nukkit.utils.collection.nb.Long2ObjectNonBlockingMap.IteratorLong
All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator, Enumeration<Long>, Iterator<Long>, PrimitiveIterator<Long,LongConsumer>, PrimitiveIterator.OfLong
Enclosing class:
Long2ObjectNonBlockingMap<TypeV>

public class Long2ObjectNonBlockingMap.IteratorLong extends Object implements Iterator<Long>, Enumeration<Long>, it.unimi.dsi.fastutil.longs.LongIterator
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>
      Specified by:
      next in interface it.unimi.dsi.fastutil.longs.LongIterator
      Specified by:
      next in interface PrimitiveIterator.OfLong
    • nextLong

      public long nextLong()
      Return the next key as a primitive long.
      Specified by:
      nextLong in interface it.unimi.dsi.fastutil.longs.LongIterator
      Specified by:
      nextLong in interface PrimitiveIterator.OfLong
    • 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>