Class LongArrayQueue.LongIterator

java.lang.Object
org.agrona.collections.LongArrayQueue.LongIterator
All Implemented Interfaces:
Iterator<Long>
Enclosing class:
LongArrayQueue

public final class LongArrayQueue.LongIterator extends Object implements Iterator<Long>
Specialised Iterator from which the value can be retrieved without boxing via nextValue().
  • Field Details

    • index

      private int index
  • Constructor Details

    • LongIterator

      public LongIterator()
  • Method Details

    • reset

    • hasNext

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

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

      public long nextValue()
      Get the next value from the iterator without boxing.
      Returns:
      the next value from the queue.