@Internal public class DefaultSearchResults extends Object implements SearchResults
Modifier and Type | Field and Description |
---|---|
protected static SearchResults |
EMPTY_RESULTS |
Constructor and Description |
---|
DefaultSearchResults(List<? extends SearchResult> results,
int unfilteredResultsCount) |
DefaultSearchResults(List<? extends SearchResult> results,
int unfilteredResultsCount,
SearchWithToken nextPageSearch,
List<String> searchWords) |
DefaultSearchResults(List<? extends SearchResult> results,
int unfilteredResultsCount,
SearchWithToken nextPageSearch,
List<String> searchWords,
String searchQuery) |
DefaultSearchResults(List<? extends SearchResult> results,
int unfilteredResultsCount,
String searchQuery) |
Modifier and Type | Method and Description |
---|---|
List<SearchResult> |
getAll()
Creates a new list containing all returned search results.
|
SearchWithToken |
getNextPageSearch() |
List |
getRawResults()
Get the raw search results.
|
String |
getSearchQuery() |
List<String> |
getSearchWords() |
int |
getUnfilteredResultsCount()
Get the number of search results before being passed through any filter.
|
boolean |
isLastPage() |
Iterator<SearchResult> |
iterator()
Gets an iterator to run through the returned search results.
|
void |
setSearchWords(List<String> searchWords)
Deprecated.
|
int |
size()
Get the number of search results included in this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final SearchResults EMPTY_RESULTS
public DefaultSearchResults(List<? extends SearchResult> results, int unfilteredResultsCount, String searchQuery)
public DefaultSearchResults(List<? extends SearchResult> results, int unfilteredResultsCount)
public DefaultSearchResults(List<? extends SearchResult> results, int unfilteredResultsCount, SearchWithToken nextPageSearch, List<String> searchWords)
public DefaultSearchResults(List<? extends SearchResult> results, int unfilteredResultsCount, SearchWithToken nextPageSearch, List<String> searchWords, String searchQuery)
public List getRawResults()
public int getUnfilteredResultsCount()
getUnfilteredResultsCount
in interface SearchResults
public int size()
SearchResults
size
in interface SearchResults
public Iterator<SearchResult> iterator()
SearchResults
iterator
in interface SearchResults
iterator
in interface Iterable<SearchResult>
public List<SearchResult> getAll()
SearchResults
getAll
in interface SearchResults
public List<String> getSearchWords()
getSearchWords
in interface SearchResults
public String getSearchQuery()
getSearchQuery
in interface SearchResults
public SearchWithToken getNextPageSearch()
getNextPageSearch
in interface SearchResults
public boolean isLastPage()
isLastPage
in interface SearchResults
@Deprecated public void setSearchWords(List<String> searchWords)
DefaultSearchResults(List, int, SearchWithToken, List, String)
.Copyright © 2003–2019 Atlassian. All rights reserved.