Package com.googlecode.javaewah
Interface ChunkIterator
-
public interface ChunkIteratorThe 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 booleanhasNext()Is there more?voidmove()Move the iterator at the next different bitvoidmove(int bits)Move the iterator at the next ith bitbooleannextBit()Return the next bitintnextLength()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
-
-