是否有可行的通用替代apache.commons.collections.CollectionUtils?

凯文·克莱恩(Kevin Cline):

有可行的通用版本org.apache.commons.collections.CollectionUtils吗?如果没有,为什么不呢?似乎很明显。还是在将闭包添加到Java 17之前放弃了Java社区的功能编码?

sk夫:

有一个稍微超出的最新版本共享收藏的genericified端口这里但是,它不再维护。

更好的选择是Google Guava它具有类,如ListsSetsCollections2等是相当于下议院CollectionUtilsGuava不是Commons Collections的一对一移植,但是它具有更好的设计和更一致的API。如果您习惯了Commons Collections,则需要进行一些调整。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

缺少org.apache.commons.collections.CollectionUtils

是否有与Apache Commons Collections中的ArrayIterator等效的泛型?

使用Apache Commons Collections中的MultiValueMap

Guava或Apache Commons Collections中有toArray()的任何通用版本吗?

java.lang.NoClassDefFoundError:org / apache / commons / collections / Transformer

Apache Commons Collections MultiValuedMap 按多个字段过滤数据

java.lang.NoClassDefFoundError:Lorg / apache / commons / collections / FastHashMap;

Dart 相当于 Apache Commons Collections Bag

SpringFramework是否使用来自commons.collections的InvokerTransformer?

TomEE 1.6.0.2上的org.apache.commons.collections4类的ClassNotFoundException

错误:java.lang.ClassNotFoundException:org.apache.commons.collections4.map.LinkedMap

Apache Commons-Collection的SynchronizedList()和java.util.Collections.synchronizedList()之间的区别

commons-collections和commons-beanutils中的重复类

如何学习使用Java Commons-Collections?

Commons beanutils替代

升级到commons-collections4会引发NoClassDefFoundError

Apache-Commons Commons-Functor的状态

新gTLDS的apache commons-validator替代

Apache Commons FTP问题

Apache Commons CLI(选项)

Apache Commons FTPClient挂起

Google Guava与Apache Commons

Apache Commons Unzip方法?

Apache Commons HttpClient是否支持GZIP?

Apache Commons Configuration:ClassNotFoundException:org.apache.commons.beanutils.DynaBean

Apache Commons Codec Base64是否可以替代sun.misc.BASE64?

Apache Commons CLI参数值

Apache Class Commons Math的NoClassDefFoundError

Apache commons 配置 spring 集成