Class SearchResponse

java.lang.Object
gov.usgs.earthquake.indexer.SearchResponse

public class SearchResponse extends Object
Results from a SearchRequest.
  • Constructor Details

    • SearchResponse

      public SearchResponse()
      Construct a new Search response.
  • Method Details

    • addResult

      public void addResult(SearchQuery result)
      Add a search result to this response.
      Parameters:
      result - a searchQuery result
    • getResults

      public List<SearchQuery> getResults()
      Returns:
      The search results.
    • equals

      public boolean equals(Object obj)
      Test by comparing each result.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Also override hashCode, using hash of result objects.
      Overrides:
      hashCode in class Object
    • getEvents

      public List<Event> 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.