Interface LazyLongSkippableIterator

    • Method Detail

      • skipTo

        long skipTo​(long lowerBound)
        Skips to a given element.

        Note that this interface is fragile: after END_OF_LIST has been returned, the behavour of further calls to this method will be unpredictable.

        Parameters:
        lowerBound - a lower bound to the returned element.
        Returns:
        if the last returned element is greater than or equal to lowerBound, the last returned element; otherwise, the smallest element greater than or equal to lowerBound that would be returned by this iterator, or END_OF_LIST if no such element exists.