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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntSet.IntIteratorclone()Clone the iteratorbooleanhasNext()static EmptyIntIteratorinstance()intnext()voidskipAllBefore(int element)Skips all the elements before the specified element, so thatIntSet.IntIterator.next()gives the given element or, if it does not exist, the element immediately after according to the sorting provided by this set.
-
-
-
Method Detail
-
instance
public static EmptyIntIterator instance()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceorg.roaringbitmap.IntIterator- Specified by:
hasNextin interfaceIntSet.IntIterator- Returns:
- true if the iterator has more elements.
-
next
public int next()
- Specified by:
nextin interfaceorg.roaringbitmap.IntIterator- Specified by:
nextin interfaceIntSet.IntIterator- Returns:
- the next element in the iteration.
-
skipAllBefore
public void skipAllBefore(int element)
Description copied from interface:IntSet.IntIteratorSkips all the elements before the specified element, so thatIntSet.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
elementis less than the next element, it does nothing- Specified by:
skipAllBeforein interfaceIntSet.IntIterator- Parameters:
element- first element to not skip
-
clone
public IntSet.IntIterator clone()
Description copied from interface:IntSet.IntIteratorClone the iterator- Specified by:
clonein interfaceorg.roaringbitmap.IntIterator- Specified by:
clonein interfaceIntSet.IntIterator- Overrides:
clonein classObject- Returns:
- a clone of the IntIterator
-
-