Class ReverseBitmapContainerCharIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long[] bitmap  
      (package private) int position  
      (package private) long word  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void advanceIfNeeded​(char maxval)
      If needed, when iterating forward through the chars it will advance as long as the next value is smaller than val (as an unsigned short) when iterating in reverse through the chars it will advance as long as the next value is larger than val (as an unsigned short)
      PeekableCharIterator clone()
      Creates a copy of the iterator.
      boolean hasNext()  
      char next()  
      int nextAsInt()  
      char peekNext()
      Look at the next value without advancing
      void remove()
      If possible, remove the current value
      (package private) void wrap​(long[] b)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • word

        long word
      • position

        int position
      • bitmap

        long[] bitmap
    • Constructor Detail

      • ReverseBitmapContainerCharIterator

        ReverseBitmapContainerCharIterator()
      • ReverseBitmapContainerCharIterator

        ReverseBitmapContainerCharIterator​(long[] bitmap)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface CharIterator
        Returns:
        whether there is another value
      • next

        public char next()
        Specified by:
        next in interface CharIterator
        Returns:
        next char value
      • nextAsInt

        public int nextAsInt()
        Specified by:
        nextAsInt in interface CharIterator
        Returns:
        next short value as int value (using the least significant 16 bits)
      • advanceIfNeeded

        public void advanceIfNeeded​(char maxval)
        Description copied from interface: PeekableCharIterator
        If needed, when iterating forward through the chars it will advance as long as the next value is smaller than val (as an unsigned short) when iterating in reverse through the chars it will advance as long as the next value is larger than val (as an unsigned short)
        Specified by:
        advanceIfNeeded in interface PeekableCharIterator
        Parameters:
        maxval - threshold
      • remove

        public void remove()
        Description copied from interface: CharIterator
        If possible, remove the current value
        Specified by:
        remove in interface CharIterator
      • wrap

        void wrap​(long[] b)