Class AbstractLazyIntIterator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int skip​(int 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
    • Constructor Detail

      • AbstractLazyIntIterator

        public AbstractLazyIntIterator()
    • Method Detail

      • 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).