public class SearchResults extends Object
| Constructor and Description |
|---|
SearchResults(List<Message> errors)
Constructs search results that contained errors
|
SearchResults(List<SearchMatch> matches,
int totalResults,
long searchTime)
Constructs search results with successful matches
|
| Modifier and Type | Method and Description |
|---|---|
List<Message> |
getErrors() |
List<SearchMatch> |
getMatches() |
long |
getSearchTime() |
int |
getTotalResults() |
public SearchResults(List<Message> errors)
errors - The error listpublic SearchResults(List<SearchMatch> matches, int totalResults, long searchTime)
matches - The list of matchestotalResults - The total number of available resultssearchTime - The time the search took in millisecondspublic List<SearchMatch> getMatches()
public long getSearchTime()
public int getTotalResults()
Copyright © 2015 Atlassian. All rights reserved.