Class IntArrayQueue.IntIterator

java.lang.Object
org.agrona.collections.IntArrayQueue.IntIterator
All Implemented Interfaces:
Iterator<Integer>
Enclosing class:
IntArrayQueue

public final class IntArrayQueue.IntIterator extends Object implements Iterator<Integer>
Specialised Iterator from which the value can be retrieved without boxing via nextValue().
  • Constructor Details

    • IntIterator

      public IntIterator()
      Create a new instance.
  • Method Details

    • hasNext

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

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

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