Package org.roaringbitmap
Interface PeekableCharIterator
-
- All Superinterfaces:
CharIterator,java.lang.Cloneable
- All Known Subinterfaces:
PeekableCharRankIterator
public interface PeekableCharIterator extends CharIterator
Simple extension to the CharIterator interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadvanceIfNeeded(char minval)If needed, advance as long as the next value is smaller than minval (as an unsigned short)PeekableCharIteratorclone()Creates a copy of the iterator.charpeekNext()Look at the next value without advancing-
Methods inherited from interface org.roaringbitmap.CharIterator
hasNext, next, nextAsInt, remove
-
-
-
-
Method Detail
-
advanceIfNeeded
void advanceIfNeeded(char minval)
If needed, advance as long as the next value is smaller than minval (as an unsigned short)- Parameters:
minval- threshold
-
peekNext
char peekNext()
Look at the next value without advancing- Returns:
- next value
-
clone
PeekableCharIterator clone()
Creates a copy of the iterator.- Specified by:
clonein interfaceCharIterator- Returns:
- a clone of the current iterator
-
-