Guava中Predicate的常见用法

guava提供了许多利用Functions和Predicates来操作Collections的工具,一般在 Iterables, Lists, Sets, Maps, Multimaps中用到。

Predicate最基本的用法就是对Collection进行过滤,guava中很多集合的filter方法都是用Predicate来实现过滤的。

 

 

 

https://www.cnblogs.com/onlychang92/p/5203139.html

posted @ 2017-12-18 14:05  全力以赴001  阅读(448)  评论(0编辑  收藏  举报