Package it.unimi.dsi.big.webgraph
Class AbstractLazyLongIterator
java.lang.Object
it.unimi.dsi.big.webgraph.AbstractLazyLongIterator
- All Implemented Interfaces:
LazyLongIterator
- Direct Known Subclasses:
BitStreamArcLabelledImmutableGraph.BitStreamLabelledArcIterator
,EFGraph.EliasFanoSuccessorReader
public abstract class AbstractLazyLongIterator extends Object implements LazyLongIterator
An abstract implementation of a lazy integer iterator, implementing
skip(long)
by repeated calls to nextInt()
.-
Constructor Summary
Constructors Constructor Description AbstractLazyLongIterator()
-
Method Summary
Modifier and Type Method Description long
skip(long n)
Skips a given number of elements.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface it.unimi.dsi.big.webgraph.LazyLongIterator
nextLong
-
Constructor Details
-
AbstractLazyLongIterator
public AbstractLazyLongIterator()
-
-
Method Details
-
skip
public long skip(long n)Description copied from interface:LazyLongIterator
Skips a given number of elements.- Specified by:
skip
in interfaceLazyLongIterator
- Parameters:
n
- the number of elements to skip.- Returns:
- the number of elements actually skipped (which might
be less than
n
if this iterator is exhausted).
-