Package com.atlassian.jira.util
Interface StreamPage<T>
public interface StreamPage<T>
A single page of values in a stream-like API.
- Since:
- 10.7.1
-
Method Summary
-
Method Details
-
getCursor
String getCursor()- Returns:
- the element from which to follow the items returned in this page. This functions as the position in the result set after which this page starts. This is the value of the last element in the previous page, or may null if this is the first page.
-
getNextCursor
String getNextCursor()- Returns:
- the next cursor to use to get the next page of results. This will be null if there are no more pages.
-
getSize
int getSize()- Returns:
- the number of results in this 'page' of results.
-
getValues
- Returns:
- a list of the values on this page. Each service returning a page should specify the ordering on the list.
-
isLast
boolean isLast()- Returns:
- true if this is the last page. This is true if the next cursor is null.
-