Top Description Methods
com.googlecode.javaewah

public Interface ChunkIterator

Known Direct Implementers
com.googlecode.javaewah.ChunkIteratorImpl, com.googlecode.javaewah32.ChunkIteratorImpl32

The ChunkIterator interface is used to iterate over chunks of ones or zeros.
Author
Gregory Ssi-Yan-Kai

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true, if there is more, false otherwise
hasNext
()

Is there more?

public void
move()

Move the iterator at the next different bit

public void
move(int
the number of bits to skip
bits
)

Move the iterator at the next ith bit

public boolean

Returns:

the bit
nextBit
()

Return the next bit

public int

Returns:

the length
nextLength
()

Return the length of the next bit

Method Detail

hasNextback to summary
public boolean hasNext()

Is there more?

Returns:boolean

true, if there is more, false otherwise

moveback to summary
public void move()

Move the iterator at the next different bit

moveback to summary
public void move(int bits)

Move the iterator at the next ith bit

Parameters
bits:int

the number of bits to skip

nextBitback to summary
public boolean nextBit()

Return the next bit

Returns:boolean

the bit

nextLengthback to summary
public int nextLength()

Return the length of the next bit

Returns:int

the length