Package eu.acclimatize.unison
Class PrecipitationResultFilter
java.lang.Object
eu.acclimatize.unison.PrecipitationResultFilter
A class that filters precipitation results, such that only ternary
precipitation results or single value results are returned, not a
combination.
-
Constructor Summary
ConstructorsConstructorDescriptionPrecipitationResultFilter(ItemListFinder<PrecipitationResult> precipitationFinder) Creates an instance of PrecipitationResultFilter. -
Method Summary
Modifier and TypeMethodDescriptionfilterResults(javax.servlet.http.HttpServletResponse response, String location, Date fromDate, Date toDate) Filters results such that only ternary or single values are contained in the returned list, not a combination of both.
-
Constructor Details
-
PrecipitationResultFilter
Creates an instance of PrecipitationResultFilter.- Parameters:
precipitationFinder- The finder used to obtain precipitation results for queries.
-
-
Method Details
-
filterResults
public List<HarmonieItem> filterResults(javax.servlet.http.HttpServletResponse response, String location, Date fromDate, Date toDate) Filters results such that only ternary or single values are contained in the returned list, not a combination of both.- Parameters:
response- The response object used to alter the default headers.location- The query location.fromDate- The earliest date in the query range.toDate- The latest date in the query range.- Returns:
- The filtered list.
-