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 PeekableShortRankIterator
clone()
Creates a copy of the iterator.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-
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:PeekableShortIterator
Creates a copy of the iterator.- Specified by:
clone
in interfacePeekableShortIterator
- Specified by:
clone
in interfaceShortIterator
- Returns:
- a clone of the current iterator
-
-