| Constructor and Description |
|---|
SearchResults(List<T> resultsInPage,
int totalResultCount,
int maxResultCount,
int startIndex)
Construct searchResults using the resultsInPage that should be displayed, and the 'total' number of results.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEnd() |
int |
getMax() |
int |
getNextStart() |
int |
getNiceStart()
Return the 'readable' start (ie 1 instead of 0)
|
List<com.atlassian.jira.issue.search.SearchResults.Page> |
getPages() |
int |
getPreviousStart() |
List<T> |
getResults()
Get the resultsInPage available in this page.
|
int |
getStart() |
int |
getTotal() |
<R> SearchResults<R> |
transform(java.util.function.Function<T,R> transformer) |
public SearchResults(List<T> resultsInPage, int totalResultCount, int maxResultCount, int startIndex)
resultsInPage - A list of T objectstotalResultCount - The count of the number of resultsInPage returnedmaxResultCount - The maximum number of resultsInPage to include in the searchstartIndex - The index of the first result in the searchpublic <R> SearchResults<R> transform(java.util.function.Function<T,R> transformer)
public List<T> getResults()
T objectspublic int getMax()
public int getNextStart()
getNextStart in interface Pagerpublic int getPreviousStart()
getPreviousStart in interface Pagerpublic int getNiceStart()
Copyright © 2002-2022 Atlassian. All Rights Reserved.