Module org.apache.lucene.core
Package org.apache.lucene.internal.hppc
Class IntArrayList.ValueIterator
- java.lang.Object
-
- org.apache.lucene.internal.hppc.AbstractIterator<IntCursor>
-
- org.apache.lucene.internal.hppc.IntArrayList.ValueIterator
-
- All Implemented Interfaces:
java.util.Iterator<IntCursor>
- Enclosing class:
- IntArrayList
static final class IntArrayList.ValueIterator extends AbstractIterator<IntCursor>
An iterator implementation forIntArrayList.iterator()
.
-
-
Constructor Summary
Constructors Constructor Description ValueIterator(int[] buffer, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IntCursor
fetch()
Fetch next element.-
Methods inherited from class org.apache.lucene.internal.hppc.AbstractIterator
done, hasNext, next, remove
-
-
-
-
Field Detail
-
cursor
private final IntCursor cursor
-
buffer
private final int[] buffer
-
size
private final int size
-
-
Method Detail
-
fetch
protected IntCursor fetch()
Description copied from class:AbstractIterator
Fetch next element. The implementation must returnAbstractIterator.done()
when all elements have been fetched.- Specified by:
fetch
in classAbstractIterator<IntCursor>
- Returns:
- Returns the next value for the iterator or chain-calls
AbstractIterator.done()
.
-
-