I have a test task. I have to create Chain of Responsibility for searching files in file system. For example one unit must check file for name and other one check file for size range.
If I use java8 Predicate like that:
- define factory methods for unit of chain which return predicate.
- combine predicates with 'and'
- start chain.
In this case, can I say that it is a Chain of Responsibility?
Aucun commentaire:
Enregistrer un commentaire