Class IntIteratorOverIteratingRLW32

  • All Implemented Interfaces:
    IntIterator

    public class IntIteratorOverIteratingRLW32
    extends java.lang.Object
    implements IntIterator
    Implementation of an IntIterator over an IteratingRLW.
    • Field Detail

      • position

        private int position
      • runningLength

        private int runningLength
      • word

        private int word
      • wordPosition

        private int wordPosition
      • wordLength

        private int wordLength
      • literalPosition

        private int literalPosition
      • hasNext

        private boolean hasNext
    • Constructor Detail

      • IntIteratorOverIteratingRLW32

        public IntIteratorOverIteratingRLW32​(IteratingRLW32 p)
        Parameters:
        p - iterator we wish to iterate over
    • Method Detail

      • moveToNext

        private boolean moveToNext()
        Returns:
        whether we could find another set bit; don't move if there is an unprocessed value
      • hasNext

        public boolean hasNext()
        Description copied from interface: IntIterator
        Is there more?
        Specified by:
        hasNext in interface IntIterator
        Returns:
        true, if there is more, false otherwise
      • next

        public final int next()
        Description copied from interface: IntIterator
        Return the next integer
        Specified by:
        next in interface IntIterator
        Returns:
        the integer
      • setupForCurrentRunningLengthWord

        private void setupForCurrentRunningLengthWord()
      • runningHasNext

        private boolean runningHasNext()
      • literalHasNext

        private boolean literalHasNext()