Package org.roaringbitmap
Interface PeekableCharRankIterator
- All Superinterfaces:
CharIterator
,Cloneable
,PeekableCharIterator
PeekableCharIterator that calculates the next value rank during iteration
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a copy of the iterator.int
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-65536Methods inherited from interface org.roaringbitmap.CharIterator
hasNext, next, nextAsInt, remove
Methods inherited from interface org.roaringbitmap.PeekableCharIterator
advanceIfNeeded, peekNext
-
Method Details
-
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
PeekableCharRankIterator clone()Description copied from interface:PeekableCharIterator
Creates a copy of the iterator.- Specified by:
clone
in interfaceCharIterator
- Specified by:
clone
in interfacePeekableCharIterator
- Returns:
- a clone of the current iterator
-