Search State
Generic search state interface that can be used to search and manage the results
Parameters
: The type of the search result
: The type of the search query
Inheritors
Properties
Initial query value and also the value to which the query is reset when the search is terminated
Returns true if there are any search results.
Returns true if the search has completed.
Returns true if a search is currently in progress.
The set of page indices that contain search results.
Contains the search results, the map key is the page index
The query associated with the current results
The currently selected search result, or null if no result is selected.
Index of currently selected result
The current search status of the search
Functions
Returns the result at the given index or null if the index is out of bounds
Checks if there are search results on the specified page.
Depending on the amount of search results, this method is potentially faster than results.indexOf
Checks if the search has completed for the specified query.
Returns the search results for the specified page.
Checks selectedResultIndex if it's still within the bounds of the result list and if not returns a valid index