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 Details
-
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
-