public final class BitIterator extends Object implements IntSet.IntIterator
Modifier 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
IntSet.IntIterator.next() gives the given element or, if it does not exist, the
element immediately after according to the sorting provided by this
set. |
public boolean hasNext()
hasNext
in interface IntSet.IntIterator
hasNext
in interface org.roaringbitmap.IntIterator
public int next()
next
in interface IntSet.IntIterator
next
in interface org.roaringbitmap.IntIterator
public void remove()
IntSet.IntIterator
remove
in interface IntSet.IntIterator
public void skipAllBefore(int element)
IntSet.IntIterator
IntSet.IntIterator.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
skipAllBefore
in interface IntSet.IntIterator
element
- first element to not skippublic IntSet.IntIterator clone()
IntSet.IntIterator
clone
in interface IntSet.IntIterator
clone
in interface org.roaringbitmap.IntIterator
clone
in class Object
Copyright © 2011–2017. All rights reserved.