經常使用Lambda表達式實例

集合操做 從集合中過濾出某一個字段存入到新集合 // 從商品集合中過濾出商品類目id爲一個新 List<Integer>集合 List<Integer> categoryTypeList = productInfoList.stream() .map(e -> e.getCategoryType()) .collect(Colle
相關文章
相關標籤/搜索