Package com.googlecode.javaewah32
Class ClearIntIterator32
- java.lang.Object
-
- com.googlecode.javaewah32.ClearIntIterator32
-
- All Implemented Interfaces:
IntIterator
final class ClearIntIterator32 extends java.lang.Object implements IntIterator
This class is equivalent to IntIteratorImpl, except that it allows use to iterate over "clear" bits (bits set to 0).
-
-
Field Summary
Fields Modifier and Type Field Description private Buffer32bufferprivate EWAHIterator32ewahIterprivate booleanhasNextprivate intliteralPositionprivate intpositionprivate intrunningLengthprivate intsizeInBitsprivate intwordprivate intwordLengthprivate intwordPosition
-
Constructor Summary
Constructors Constructor Description ClearIntIterator32(EWAHIterator32 ewahIter, int sizeInBits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Is there more?private booleanliteralHasNext()booleanmoveToNext()intnext()Return the next integerprivate booleanrunningHasNext()private voidsetRunningLengthWord(RunningLengthWord32 rlw)
-
-
-
Field Detail
-
ewahIter
private final EWAHIterator32 ewahIter
-
sizeInBits
private final int sizeInBits
-
buffer
private final Buffer32 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 Detail
-
ClearIntIterator32
ClearIntIterator32(EWAHIterator32 ewahIter, int sizeInBits)
-
-
Method Detail
-
moveToNext
public boolean moveToNext()
-
hasNext
public boolean hasNext()
Description copied from interface:IntIteratorIs there more?- Specified by:
hasNextin interfaceIntIterator- Returns:
- true, if there is more, false otherwise
-
next
public int next()
Description copied from interface:IntIteratorReturn the next integer- Specified by:
nextin interfaceIntIterator- Returns:
- the integer
-
setRunningLengthWord
private void setRunningLengthWord(RunningLengthWord32 rlw)
-
runningHasNext
private boolean runningHasNext()
-
literalHasNext
private boolean literalHasNext()
-
-