Interface ObjectBigListIterator<K>

    • Method Detail

      • skip

        default long skip​(long n)
        Skips the given number of elements.

        The effect of this call is exactly the same as that of calling next() for n times (possibly stopping if Iterator.hasNext() becomes false).

        Parameters:
        n - the number of elements to skip.
        Returns:
        the number of elements actually skipped.
        See Also:
        Iterator.next()
      • back

        default long back​(long n)
        Moves back for the given number of elements.

        The effect of this call is exactly the same as that of calling previous() for n times (possibly stopping if BidirectionalIterator.hasPrevious() becomes false).

        Parameters:
        n - the number of elements to skip back.
        Returns:
        the number of elements actually skipped.
        See Also:
        BidirectionalIterator.previous()