Package com.atlassian.jira.issue.search
Class SearchResults<T>
java.lang.Object
com.atlassian.jira.issue.search.SearchResults<T>
- All Implemented Interfaces:
Pager
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResults
(List<T> resultsInPage, int totalResultCount, int maxResultCount, int startIndex) Construct searchResults using the resultsInPage that should be displayed, and the 'total' number of results. -
Method Summary
-
Constructor Details
-
SearchResults
public 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. This is used when we do a stable search and want to return a max of the selected page's length, not the stable search limit.- Parameters:
resultsInPage
- A list ofSearchResults
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 search
-
-
Method Details
-
transform
-
getResults
Get the resultsInPage available in this page.- Returns:
- A list of
SearchResults
objects
-
getStart
public int getStart() -
getEnd
public int getEnd() -
getTotal
public int getTotal() -
getMax
public int getMax() -
getNextStart
public int getNextStart()- Specified by:
getNextStart
in interfacePager
-
getPreviousStart
public int getPreviousStart()- Specified by:
getPreviousStart
in interfacePager
-
getNiceStart
public int getNiceStart()Return the 'readable' start (ie 1 instead of 0) -
getPages
-