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.IntIterator
clone()
Clone the iteratorboolean
hasNext()
static EmptyIntIterator
instance()
int
next()
void
skipAllBefore(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:
hasNext
in interfaceorg.roaringbitmap.IntIterator
- Specified by:
hasNext
in interfaceIntSet.IntIterator
- Returns:
- true if the iterator has more elements.
-
next
public int next()
- Specified by:
next
in interfaceorg.roaringbitmap.IntIterator
- Specified by:
next
in interfaceIntSet.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 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
element
is less than the next element, it does nothing- Specified by:
skipAllBefore
in interfaceIntSet.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 interfaceorg.roaringbitmap.IntIterator
- Specified by:
clone
in interfaceIntSet.IntIterator
- Overrides:
clone
in classObject
- Returns:
- a clone of the IntIterator
-
-