com.atlassian.jira.rest.client.domain
Class SearchResult
java.lang.Object
com.atlassian.jira.rest.client.domain.SearchResult
public class SearchResult
- extends Object
Represents search results - links to issues matching given filter (JQL query) with basic
information supporting the paging through the results.
- Since:
- v0.2
SearchResult
public SearchResult(int startIndex,
int maxResults,
int total,
Iterable<BasicIssue> issues)
getStartIndex
public int getStartIndex()
- Returns:
- 0-based start index of the returned issues (e.g. "3" means that 4th, 5th...maxResults issues matching given query
have been returned.
getMaxResults
public int getMaxResults()
- Returns:
- maximum page size (the window to results).
getTotal
public int getTotal()
- Returns:
- total number of issues (regardless of current maxResults and startIndex) matching given criteria.
Query JIRA another time with different startIndex to get subsequent issues
getIssues
public Iterable<BasicIssue> getIssues()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.