Interface ChunkIterator

All Known Implementing Classes:
ChunkIteratorImpl, ChunkIteratorImpl32

public interface ChunkIterator
The ChunkIterator interface is used to iterate over chunks of ones or zeros.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Is there more?
    void
    Move the iterator at the next different bit
    void
    move(int bits)
    Move the iterator at the next ith bit
    boolean
    Return the next bit
    int
    Return the length of the next bit
  • 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