How do you query object collections in Java (Criteria/SQL-like)?

后端 未结 7 1424
醉话见心
醉话见心 2020-11-30 05:03

Suppose you have a collection of a few hundred in-memory objects and you need to query this List to return objects matching some SQL or Criteria like query. For example, you

7条回答
  •  [愿得一人]
    2020-11-30 05:33

    I have used Apache Commons JXPath in a production application. It allows you to apply XPath expressions to graphs of objects in Java.

提交回复
热议问题