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 java.lang.Object implements LazyLongIterator
An abstract implementation of a lazy integer iterator, implementingskip(long)
by repeated calls tonextInt()
.
-
-
Constructor Summary
Constructors Constructor Description AbstractLazyLongIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
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).
-
-