Design pattern for filtering a collection of items?

前端 未结 6 951
既然无缘
既然无缘 2021-02-04 04:43

Imagine the typical type of application where you have a list of items with different properties. E.g. a tree-view with 100 items, each having a name, a rating

6条回答
  •  野的像风
    2021-02-04 05:25

    See if the http://en.wikipedia.org/wiki/Criteria_Pattern can help you. Is based on specification pattern

提交回复
热议问题