Package org.roaringbitmap
Interface PeekableShortIterator
-
- All Superinterfaces:
Cloneable
,ShortIterator
- All Known Subinterfaces:
PeekableShortRankIterator
public interface PeekableShortIterator extends ShortIterator
Simple extension to the ShortIterator interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
advanceIfNeeded(short minval)
If needed, advance as long as the next value is smaller than minval (as an unsigned short)PeekableShortIterator
clone()
Creates a copy of the iterator.short
peekNext()
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:
clone
in interfaceShortIterator
- Returns:
- a clone of the current iterator
-
-