public Stream<T> lazyStream() throws IllegalStateException {

        if (pagerStream == null) {
            synchronized (this) {
                if (pagerStream == null) {

                    // Make sure that current page is 0, this will ensure the whole list is streamed
                    // regardless of what page the instance is currently on.
                    currentPage = 0;

                    pagerStream = StreamSupport.stream(new PagerSpliterator<T>(this), false);
                    return (pagerStream);
                }
            }
        }

        throw new IllegalStateException("Stream already issued");
    }
public Stream < T > lazyStream ( ) throws IllegalStateException { if ( pagerStream == null ) { synchronized ( this ) { if ( pagerStream == null ) { currentPage = 0 ; pagerStream = StreamSupport . stream ( new PagerSpliterator < T > ( this ) , false ) ; return ( pagerStream ) ; } } } throw new IllegalStateException ( "Stream already issued" ) ; }
Creates a Stream instance for lazily streaming items from the GitLab server.

@return a Stream instance for lazily streaming items from the GitLab server
@throws IllegalStateException if Stream has already been issued