@PublicApi public class SearchResults extends Object implements IssuePager
Constructor and Description |
---|
SearchResults(List<Issue> issuesInPage,
int totalIssueCount,
int maxIssueCount,
int startIndex)
Construct searchResults using the issues that should be displayed, and the 'total' number of issues.
|
SearchResults(List<Issue> issuesInPage,
int totalIssueCount,
PagerFilter pagerFilter)
Construct searchResults using the issues that should be displayed, and the 'total' number of issues.
|
SearchResults(List<Issue> issues,
PagerFilter<Issue> pagerFilter)
Construct searchResults using a list of issues.
|
Modifier and Type | Method and Description |
---|---|
int |
getEnd() |
List<Issue> |
getIssues()
Get the issues available in this page.
|
int |
getNextStart() |
int |
getNiceStart()
Return the 'readable' start (ie 1 instead of 0)
|
List<com.atlassian.jira.issue.search.SearchResults.Page> |
getPages() |
int |
getPreviousStart() |
int |
getStart() |
int |
getTotal() |
public SearchResults(List<Issue> issues, PagerFilter<Issue> pagerFilter)
getIssues()
will
be a subset of the issues passed in.issues
- A list of Issue
objectspagerFilter
- Representing which issues to limit the results topublic SearchResults(List<Issue> issuesInPage, int totalIssueCount, PagerFilter pagerFilter)
issuesInPage
- A list of Issue
objectstotalIssueCount
- The count of the number of issues returnedpagerFilter
- Representing the users preference for pagingpublic SearchResults(List<Issue> issuesInPage, int totalIssueCount, int maxIssueCount, int startIndex)
issuesInPage
- A list of Issue
objectstotalIssueCount
- The count of the number of issues returnedmaxIssueCount
- The maximum number of issues to include in the searchstartIndex
- The index of the first issue in the searchpublic List<Issue> getIssues()
Issue
objectspublic int getStart()
getStart
in interface IssuePager
public int getEnd()
getEnd
in interface IssuePager
public int getTotal()
getTotal
in interface IssuePager
public int getNextStart()
getNextStart
in interface IssuePager
public int getPreviousStart()
getPreviousStart
in interface IssuePager
public int getNiceStart()
public List<com.atlassian.jira.issue.search.SearchResults.Page> getPages()
getPages
in interface IssuePager
Copyright © 2002-2017 Atlassian. All Rights Reserved.