Package gov.usgs.earthquake.indexer
Class SearchResponse
java.lang.Object
gov.usgs.earthquake.indexer.SearchResponse
Results from a SearchRequest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResult
(SearchQuery result) Add a search result to this response.boolean
Test by comparing each result.Get a distinct list of events from EventDetailQuery results.int
hashCode()
Also override hashCode, using hash of result objects.
-
Constructor Details
-
SearchResponse
public SearchResponse()Construct a new Search response.
-
-
Method Details
-
addResult
Add a search result to this response.- Parameters:
result
- a searchQuery result
-
getResults
- Returns:
- The search results.
-
equals
Test by comparing each result. -
hashCode
public int hashCode()Also override hashCode, using hash of result objects. -
getEvents
Get a distinct list of events from EventDetailQuery results.- Returns:
- List of found events. List will be empty if there were no EventDetailQueries, or no matching events were found.
-