Stream常用操作
摘要:
一 、list 加法 BigDecimal 类型: BigDecimal bb =list.stream().map(Plan::getAmount).reduce(BigDecimal.ZERO,BigDecimal::add); int、double、long 类型: double max = 阅读全文
posted @ 2021-04-08 10:44 南猫猫猫猫猫 阅读(102) 评论(0) 推荐(0)
2021年4月8日 #
posted @ 2021-04-08 10:44 南猫猫猫猫猫 阅读(102) 评论(0) 推荐(0)