经常使用Lambda表达式实例

集合操做 从集合中过滤出某一个字段存入到新集合 // 从商品集合中过滤出商品类目id为一个新 List<Integer>集合 List<Integer> categoryTypeList = productInfoList.stream() .map(e -> e.getCategoryType()) .collect(Colle
相关文章
相关标签/搜索