Class EmptyIntIterator

java.lang.Object
org.apache.druid.extendedset.intset.EmptyIntIterator
All Implemented Interfaces:
Cloneable, IntSet.IntIterator, org.roaringbitmap.IntIterator

public final class EmptyIntIterator extends Object implements IntSet.IntIterator
  • Method Details

    • instance

      public static EmptyIntIterator instance()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface org.roaringbitmap.IntIterator
      Specified by:
      hasNext in interface IntSet.IntIterator
      Returns:
      true if the iterator has more elements.
    • next

      public int next()
      Specified by:
      next in interface org.roaringbitmap.IntIterator
      Specified by:
      next in interface IntSet.IntIterator
      Returns:
      the next element in the iteration.
    • skipAllBefore

      public void skipAllBefore(int element)
      Description copied from interface: IntSet.IntIterator
      Skips all the elements before the specified element, so that IntSet.IntIterator.next() gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.

      If element is less than the next element, it does nothing

      Specified by:
      skipAllBefore in interface IntSet.IntIterator
      Parameters:
      element - first element to not skip
    • clone

      public IntSet.IntIterator clone()
      Description copied from interface: IntSet.IntIterator
      Clone the iterator
      Specified by:
      clone in interface org.roaringbitmap.IntIterator
      Specified by:
      clone in interface IntSet.IntIterator
      Overrides:
      clone in class Object
      Returns:
      a clone of the IntIterator