Class ShortArrayList.ValueIterator
java.lang.Object
com.carrotsearch.hppc.AbstractIterator<ShortCursor>
com.carrotsearch.hppc.ShortArrayList.ValueIterator
- All Implemented Interfaces:
Iterator<ShortCursor>
- Enclosing class:
ShortArrayList
An iterator implementation for
ShortArrayList.iterator().-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final short[]private final ShortCursorprivate final int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractIterator
done, hasNext, next, removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
cursor
-
buffer
private final short[] buffer -
size
private final int size
-
-
Constructor Details
-
ValueIterator
public ValueIterator(short[] buffer, int size)
-
-
Method Details
-
fetch
Description copied from class:AbstractIteratorFetch next element. The implementation must returnAbstractIterator.done()when all elements have been fetched.- Specified by:
fetchin classAbstractIterator<ShortCursor>- Returns:
- Returns the next value for the iterator or chain-calls
AbstractIterator.done().
-