Guava中针对集合的 filter和过滤功能

在guava库中,自带了过滤器(filter)的功能,能够用来对collection 进行过滤,先看例子: @Test public void whenFilterWithIterables_thenFiltered() { List<String> names = Lists.newArrayList("John", "Jane", "Adam", "Tom"); Iterabl
相关文章
相关标签/搜索