2018年2月5日

Java8函数式编程探秘

摘要: 引子 将行为作为数据传递怎样在一行代码里同时计算一个列表的和、最大值、最小值、平均值、元素个数、奇偶分组、指数、排序呢?答案是思维反转!将行为作为数据传递。 文艺青年的代码如下所示: public class FunctionUtil { public static <T,R> List<R> mu 阅读全文

posted @ 2018-02-05 08:54 taich-flute 阅读(2751) 评论(0) 推荐(0) 编辑

导航