What is the best way to filter a Java Collection?

后端 未结 27 3335
故里飘歌
故里飘歌 2020-11-21 06:55

I want to filter a java.util.Collection based on a predicate.

27条回答
  •  孤独总比滥情好
    2020-11-21 07:16

    Use Collection Query Engine (CQEngine). It is by far the fastest way to do this.

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

提交回复
热议问题