Class BitbucketPageStreamUtil
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.client.paging.BitbucketPageStreamUtil
Provides a way to return Stream of page based on first page and
NextPageFetcher.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream<BitbucketPage<T>>toStream(BitbucketPage<T> firstPage, NextPageFetcher<T> nextPageFetcher) Returns a Stream of Bitbucket Pages.
-
Constructor Details
-
BitbucketPageStreamUtil
public BitbucketPageStreamUtil()
-
-
Method Details
-
toStream
public static <T> Stream<BitbucketPage<T>> toStream(BitbucketPage<T> firstPage, NextPageFetcher<T> nextPageFetcher) Returns a Stream of Bitbucket Pages.NextPageFetcherprovides a way for individual client to provide a way to fetch next page.- Type Parameters:
T- Type for Page- Parameters:
firstPage- First PagenextPageFetcher- Used for fetching next page- Returns:
- Stream of pages.
-