Package org.agrona.collections
Class LongArrayQueue.LongIterator
- java.lang.Object
-
- org.agrona.collections.LongArrayQueue.LongIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Long>
- Enclosing class:
- LongArrayQueue
public final class LongArrayQueue.LongIterator extends java.lang.Object implements java.util.Iterator<java.lang.Long>
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 LongIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Long
next()
long
nextValue()
Get the next value from the iterator without boxing.(package private) LongArrayQueue.LongIterator
reset()
-
-
-
Method Detail
-
reset
LongArrayQueue.LongIterator reset()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Long>
-
next
public java.lang.Long next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Long>
-
nextValue
public long nextValue()
Get the next value from the iterator without boxing.- Returns:
- the next value from the queue.
-
-