Package gov.usgs.earthquake.indexer
Class SearchRequest
- java.lang.Object
-
- gov.usgs.earthquake.indexer.SearchRequest
-
- All Implemented Interfaces:
java.lang.Comparable<SearchRequest>
public class SearchRequest extends java.lang.Object implements java.lang.Comparable<SearchRequest>
A search request, which is one or moreSearchQuery
s.
-
-
Constructor Summary
Constructors Constructor Description SearchRequest()
Construct a new SearchRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQuery(SearchQuery query)
Add another query to this request.int
compareTo(SearchRequest that)
boolean
equals(java.lang.Object that)
java.util.List<SearchQuery>
getQueries()
-
-
-
Method Detail
-
addQuery
public void addQuery(SearchQuery query)
Add another query to this request.- Parameters:
query
- the query to add
-
getQueries
public java.util.List<SearchQuery> getQueries()
- Returns:
- The list of queries that are part of this request.
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(SearchRequest that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SearchRequest>
-
-