Class AbstractLazyIntIterator

java.lang.Object
it.unimi.dsi.webgraph.AbstractLazyIntIterator
All Implemented Interfaces:
LazyIntIterator
Direct Known Subclasses:
BitStreamArcLabelledImmutableGraph.BitStreamLabelledArcIterator, EFGraph.EliasFanoSuccessorReader

public abstract class AbstractLazyIntIterator
extends Object
implements LazyIntIterator
An abstract implementation of a lazy integer iterator, implementing skip(int) by repeated calls to nextInt().
  • Constructor Details

    • AbstractLazyIntIterator

      public AbstractLazyIntIterator()
  • Method Details

    • skip

      public int skip​(int n)
      Description copied from interface: LazyIntIterator
      Skips a given number of elements.
      Specified by:
      skip in interface LazyIntIterator
      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).