Skip to content

Instantly share code, notes, and snippets.

@SG-K

SG-K/gist7.java Secret

Created Jul 22, 2020
Embed
What would you like to do?
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