随笔分类 -  Java / Java8

摘要:List<User> newList = objList.stream().collect( Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(User::ge 阅读全文
posted @ 2023-02-28 10:51 艺言弈行 阅读(41) 评论(0) 推荐(0)
摘要:示例: 执行结果: 阅读全文
posted @ 2018-01-29 15:28 艺言弈行 阅读(12458) 评论(0) 推荐(0)
摘要:例如: 举例 执行后: 阅读全文
posted @ 2018-01-29 15:21 艺言弈行 阅读(9810) 评论(0) 推荐(0)