Package org.roaringbitmap
Interface PeekableShortRankIterator
-
- All Superinterfaces:
Cloneable,PeekableShortIterator,ShortIterator
public interface PeekableShortRankIterator extends PeekableShortIterator
PeekableShortIterator that calculates the next value rank during iteration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PeekableShortRankIteratorclone()Creates a copy of the iterator.intpeekNextRank()peek in-container rank of the next value Uses integer because internal representation of rank is int and in-container rank lies in range 1-65536-
Methods inherited from interface org.roaringbitmap.PeekableShortIterator
advanceIfNeeded, peekNext
-
Methods inherited from interface org.roaringbitmap.ShortIterator
hasNext, next, nextAsInt, remove
-
-
-
-
Method Detail
-
peekNextRank
int peekNextRank()
peek in-container rank of the next value Uses integer because internal representation of rank is int and in-container rank lies in range 1-65536- Returns:
- rank of the next value
-
clone
PeekableShortRankIterator clone()
Description copied from interface:PeekableShortIteratorCreates a copy of the iterator.- Specified by:
clonein interfacePeekableShortIterator- Specified by:
clonein interfaceShortIterator- Returns:
- a clone of the current iterator
-
-