Package com.carrotsearch.hppc
Class ObjectArrayList.ValueIterator<KType>
- java.lang.Object
-
- com.carrotsearch.hppc.AbstractIterator<ObjectCursor<KType>>
-
- com.carrotsearch.hppc.ObjectArrayList.ValueIterator<KType>
-
- All Implemented Interfaces:
java.util.Iterator<ObjectCursor<KType>>
- Enclosing class:
- ObjectArrayList<KType>
static final class ObjectArrayList.ValueIterator<KType> extends AbstractIterator<ObjectCursor<KType>>
An iterator implementation forObjectArrayList.iterator()
.
-
-
Constructor Summary
Constructors Constructor Description ValueIterator(KType[] buffer, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectCursor<KType>
fetch()
Fetch next element.-
Methods inherited from class com.carrotsearch.hppc.AbstractIterator
done, hasNext, next, remove
-
-
-
-
Field Detail
-
cursor
private final ObjectCursor<KType> cursor
-
buffer
private final KType[] buffer
-
size
private final int size
-
-
Constructor Detail
-
ValueIterator
public ValueIterator(KType[] buffer, int size)
-
-
Method Detail
-
fetch
protected ObjectCursor<KType> 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<ObjectCursor<KType>>
- Returns:
- Returns the next value for the iterator or chain-calls
AbstractIterator.done()
.
-
-