public static interface IntSet.IntIterator
extends org.roaringbitmap.IntIterator
Iterator
-like interface that allows to "skip" some elements of
the setModifier and Type | Method and Description |
---|---|
IntSet.IntIterator |
clone()
Clone the iterator
|
boolean |
hasNext() |
int |
next() |
void |
remove()
Removes from the underlying collection the last element returned by
the iterator (optional operation).
|
void |
skipAllBefore(int element)
Skips all the elements before the the specified element, so that
next() gives the given element or, if it does not exist, the
element immediately after according to the sorting provided by this
set. |
boolean hasNext()
hasNext
in interface org.roaringbitmap.IntIterator
int next()
next
in interface org.roaringbitmap.IntIterator
NoSuchElementException
- iteration has no more elements.void remove()
UnsupportedOperationException
- if the remove operation is not supported by
this Iterator.IllegalStateException
- if the next method has not yet been called,
or the remove method has already been called
after the last call to the next method.void skipAllBefore(int element)
next()
gives the given element or, if it does not exist, the
element immediately after according to the sorting provided by this
set.
If element
is less than the next element, it does
nothing
element
- first element to not skipIntSet.IntIterator clone()
clone
in interface org.roaringbitmap.IntIterator
Copyright © 2011–2017. All rights reserved.