I have a List of campaigns on which multiple different kinds of filters are applied. for e.g. platform filter, Time Constraint Filter etc. I managed this list of filters using Intercept Design Pattern. for every filter concrete implementation I have to check whether the list becomes empty or not, then only I proceed for the next filter.
I am thinking of adding this empty list check using some design patterns or some beautiful design way. How can I manage this type of check to remove duplicity of empty checks in every filter?
Any type of link or suggestions would be highly appreciated.
Aucun commentaire:
Enregistrer un commentaire