Skip to content

Instantly share code, notes, and snippets.

@SG-K

SG-K/gist7.java Secret

Created July 22, 2020 13:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SG-K/e9cc4a910adcb099981bd381273ce34d to your computer and use it in GitHub Desktop.
RateFilter rateFilter = new RateFilter();
rateFilter.setValue(singletonModel.getRate());
YearFilter yearFilter = new YearFilter();
yearFilter.setValue(singletonModel.getYear());
GenreFilter genreFilter = new GenreFilter();
genreFilter.setValue(singletonModel.getGenreId());
filteredList = new FilterManager().applyFilters(originalList, genreFilter, rateFilter, yearFilter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment