Class LongHashSet.LongIterator

java.lang.Object
org.apache.activemq.artemis.utils.collections.LongHashSet.LongIterator
All Implemented Interfaces:
Serializable, Iterator<Long>
Enclosing class:
LongHashSet

public final class LongHashSet.LongIterator extends Object implements Iterator<Long>, Serializable
Iterator which supports unboxed access to values.
See Also:
  • Constructor Details

    • LongIterator

      public LongIterator()
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Long>
    • remaining

      public int remaining()
    • next

      public Long next()
      Specified by:
      next in interface Iterator<Long>
    • nextValue

      public long nextValue()
      Strongly typed alternative of Iterator.next() to avoid boxing.
      Returns:
      the next int value
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Long>