Package org.roaringbitmap
Interface PeekableShortIterator
-
- All Superinterfaces:
java.lang.Cloneable,ShortIterator
- All Known Subinterfaces:
PeekableShortRankIterator
public interface PeekableShortIterator extends ShortIterator
Simple extension to the ShortIterator interface
-
-
Method Summary
Modifier and Type Method Description voidadvanceIfNeeded(short minval)If needed, advance as long as the next value is smaller than minval (as an unsigned short)PeekableShortIteratorclone()Creates a copy of the iterator.shortpeekNext()Look at the next value without advancing-
Methods inherited from interface org.roaringbitmap.ShortIterator
hasNext, next, nextAsInt, remove
-
-
-
-
Method Detail
-
advanceIfNeeded
void advanceIfNeeded(short minval)
If needed, advance as long as the next value is smaller than minval (as an unsigned short)- Parameters:
minval- threshold
-
peekNext
short peekNext()
Look at the next value without advancing- Returns:
- next value
-
clone
PeekableShortIterator clone()
Creates a copy of the iterator.- Specified by:
clonein interfaceShortIterator- Returns:
- a clone of the current iterator
-
-