Package org.agrona.collections
Class IntArrayQueue.IntIterator
- java.lang.Object
-
- org.agrona.collections.IntArrayQueue.IntIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Integer>
- Enclosing class:
- IntArrayQueue
public final class IntArrayQueue.IntIterator extends java.lang.Object implements java.util.Iterator<java.lang.Integer>
SpecialisedIterator
from which the value can be retrieved without boxing vianextValue()
.
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
-
Constructor Summary
Constructors Constructor Description IntIterator()
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Integer
next()
int
nextValue()
Get the next value from the iterator without boxing.(package private) IntArrayQueue.IntIterator
reset()
-
-
-
Method Detail
-
reset
IntArrayQueue.IntIterator reset()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Integer>
-
next
public java.lang.Integer next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Integer>
-
nextValue
public int nextValue()
Get the next value from the iterator without boxing.- Returns:
- the next value from the queue.
-
-