Class BitbucketPageStreamUtil
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.client.paging.BitbucketPageStreamUtil
 
 
- 
public final class BitbucketPageStreamUtil extends Object
Provides a way to return Stream of page based on first page andNextPageFetcher. 
- 
- 
Constructor Summary
Constructors Constructor Description BitbucketPageStreamUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Stream<BitbucketPage<T>>toStream(BitbucketPage<T> firstPage, NextPageFetcher<T> nextPageFetcher)Returns a Stream of Bitbucket Pages. 
 - 
 
- 
- 
Method Detail
- 
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.
 
 
 - 
 
 -