Package org.roaringbitmap.longlong
Interface LongIterator
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Subinterfaces:
PeekableLongIterator
public interface LongIterator extends java.lang.Cloneable
A simple iterator over long values. Using an IntIterator instead of Java's Iterator<Long> avoids the overhead of the Long class: on some tests, LongIterator is nearly twice as fast as Iterator<Long>.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongIterator
clone()
Creates a copy of the iterator.boolean
hasNext()
long
next()
-
-
-
Method Detail
-
clone
LongIterator clone()
Creates a copy of the iterator.- Returns:
- a clone of the current iterator
-
hasNext
boolean hasNext()
- Returns:
- whether there is another value
-
next
long next()
- Returns:
- next long value
-
-