Package com.googlecode.javaewah32
Class ClearIntIterator32
java.lang.Object
com.googlecode.javaewah32.ClearIntIterator32
- All Implemented Interfaces:
IntIterator
This class is equivalent to IntIteratorImpl, except that it allows
use to iterate over "clear" bits (bits set to 0).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Buffer32
private final EWAHIterator32
private boolean
private int
private int
private int
private final int
private int
private int
private int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ewahIter
-
sizeInBits
private final int sizeInBits -
buffer
-
position
private int position -
runningLength
private int runningLength -
word
private int word -
wordPosition
private int wordPosition -
wordLength
private int wordLength -
literalPosition
private int literalPosition -
hasNext
private boolean hasNext
-
-
Constructor Details
-
ClearIntIterator32
ClearIntIterator32(EWAHIterator32 ewahIter, int sizeInBits)
-
-
Method Details
-
moveToNext
public boolean moveToNext() -
hasNext
public boolean hasNext()Description copied from interface:IntIterator
Is there more?- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true, if there is more, false otherwise
-
next
public int next()Description copied from interface:IntIterator
Return the next integer- Specified by:
next
in interfaceIntIterator
- Returns:
- the integer
-
setRunningLengthWord
-
runningHasNext
private boolean runningHasNext() -
literalHasNext
private boolean literalHasNext()
-