Interface IntSet.IntIterator
-
- All Superinterfaces:
Cloneable,org.roaringbitmap.IntIterator
- All Known Implementing Classes:
BitIterator,EmptyIntIterator
- Enclosing interface:
- IntSet
public static interface IntSet.IntIterator extends org.roaringbitmap.IntIteratorAnIterator-like interface that allows to "skip" some elements of the set
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntSet.IntIteratorclone()Clone the iteratorbooleanhasNext()intnext()voidskipAllBefore(int element)Skips all the elements before the specified element, so thatnext()gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
- Specified by:
hasNextin interfaceorg.roaringbitmap.IntIterator- Returns:
- true if the iterator has more elements.
-
next
int next()
- Specified by:
nextin interfaceorg.roaringbitmap.IntIterator- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.
-
skipAllBefore
void skipAllBefore(int element)
Skips all the elements before the specified element, so thatnext()gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.If
elementis less than the next element, it does nothing- Parameters:
element- first element to not skip
-
clone
IntSet.IntIterator clone()
Clone the iterator- Specified by:
clonein interfaceorg.roaringbitmap.IntIterator- Returns:
- a clone of the IntIterator
-
-