Package org.roaringbitmap
Interface ShortIterator
-
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
PeekableShortIterator
,PeekableShortRankIterator
public interface ShortIterator extends Cloneable
Iterator over short values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShortIterator
clone()
Creates a copy of the iterator.boolean
hasNext()
short
next()
int
nextAsInt()
void
remove()
If possible, remove the current value
-
-
-
Method Detail
-
clone
ShortIterator clone()
Creates a copy of the iterator.- Returns:
- a clone of the current iterator
-
hasNext
boolean hasNext()
- Returns:
- whether there is another value
-
next
short next()
- Returns:
- next short value
-
nextAsInt
int nextAsInt()
- Returns:
- next short value as int value (using the least significant 16 bits)
-
remove
void remove()
If possible, remove the current value
-
-