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.intpeek 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, removeMethods 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:PeekableCharIteratorCreates a copy of the iterator.- Specified by:
clonein interfaceCharIterator- Specified by:
clonein interfacePeekableCharIterator- Returns:
- a clone of the current iterator
-