Class PrecipitationResultFilter

java.lang.Object
eu.acclimatize.unison.PrecipitationResultFilter

public class PrecipitationResultFilter extends Object
A class that filters precipitation results, such that only ternary precipitation results or single value results are returned, not a combination.
  • Constructor Details

    • PrecipitationResultFilter

      public PrecipitationResultFilter(ItemListFinder<PrecipitationResult> precipitationFinder)
      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.