Class RawReverseMappeableRunContainerCharIterator

java.lang.Object
org.roaringbitmap.buffer.RawReverseMappeableRunContainerCharIterator
All Implemented Interfaces:
Cloneable, CharIterator

final class RawReverseMappeableRunContainerCharIterator extends Object implements CharIterator
  • Field Details

    • pos

      private int pos
    • le

      private int le
    • maxlength

      private int maxlength
    • base

      private int base
    • vl

      private char[] vl
  • Constructor Details

    • RawReverseMappeableRunContainerCharIterator

      RawReverseMappeableRunContainerCharIterator(MappeableRunContainer p)
  • Method Details

    • clone

      public CharIterator clone()
      Description copied from interface: CharIterator
      Creates a copy of the iterator.
      Specified by:
      clone in interface CharIterator
      Overrides:
      clone in class Object
      Returns:
      a clone of the current iterator
    • getLength

      private char getLength(int index)
    • getValue

      private char getValue(int index)
    • 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)
    • remove

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

      private void wrap(MappeableRunContainer p)