list.stream().map(e -> new BigDecimal(e.getValue())).collect(Collectors.toList());
中的 e 代表什么?

list.stream().map(e -> new BigDecimal(e.getValue())).collect(Collectors.toList())中的 e 代表什么?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- threenewbee 2020-09-27 09:07关注
lambda表达式的参数,之所以用e,是因为它代表流里面的每一个元素(element)
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报