lambda Map Reduce

Integer totalOrderItemNum = ebayTransactionList.stream().map(EbayTransaction::getQuantity).reduce(new Integer(0),(a,b)->a+b);

 

posted @ 2018-06-07 15:31  梦见舟  阅读(90)  评论(0编辑  收藏  举报