Package com.atlassian.jira.util
Interface StreamPages
- All Known Implementing Classes:
StreamPagesImpl
@PublicApi
public interface StreamPages
Public API for creating
StreamPage instances.- Since:
- 10.7.1
-
Method Summary
Modifier and TypeMethodDescription<T> StreamPage<T> streamPage(List<T> values, String nextCursor, StreamPageRequest pageRequest) Creates a page given a list of values consisting the page, a next cursor and a page request.
-
Method Details
-
streamPage
Creates a page given a list of values consisting the page, a next cursor and a page request.- Type Parameters:
T- type of entities in the list- Parameters:
values- values that appear on the pagenextCursor- the next cursor to be used for the next pagepageRequest- a page request used to create this page- Returns:
- the requested page
-