Package com.googlecode.javaewah
Interface ChunkIterator
-
public interface ChunkIterator
The ChunkIterator interface is used to iterate over chunks of ones or zeros.- Author:
- Gregory Ssi-Yan-Kai
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Is there more?void
move()
Move the iterator at the next different bitvoid
move(int bits)
Move the iterator at the next ith bitboolean
nextBit()
Return the next bitint
nextLength()
Return the length of the next bit
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Is there more?- Returns:
- true, if there is more, false otherwise
-
nextBit
boolean nextBit()
Return the next bit- Returns:
- the bit
-
nextLength
int nextLength()
Return the length of the next bit- Returns:
- the length
-
move
void move()
Move the iterator at the next different bit
-
move
void move(int bits)
Move the iterator at the next ith bit- Parameters:
bits
- the number of bits to skip
-
-