You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
748 B
33 lines
748 B
package com.fr.third.bitmap.roaringbitmap; |
|
|
|
|
|
/** |
|
* Simple extension to the IntIterator interface. |
|
* It allows you to "skip" values using the advanceIfNeeded |
|
* method, and to look at the value without advancing (peekNext). |
|
*/ |
|
public interface PeekableIntIterator extends IntIterator { |
|
/** |
|
* If needed, advance as long as the next value is smaller than minval |
|
* |
|
* @param minval threshold |
|
*/ |
|
public void advanceIfNeeded(int minval); |
|
|
|
/** |
|
* Look at the next value without advancing |
|
* |
|
* @return next value |
|
*/ |
|
public int peekNext(); |
|
|
|
/** |
|
* Creates a copy of the iterator. |
|
* |
|
* @return a clone of the current iterator |
|
*/ |
|
@Override |
|
PeekableIntIterator clone(); |
|
} |
|
|
|
|
|
|