2020年1月2日
摘要: ``` @Data @AllArgsConstructor public class Student { private String name; private Integer score; private Integer age; } ``` ``` public class StreamTest { /** * flatMap 接收一个流的来源(比如list), 返回一个流 * 将多个流,打 阅读全文
posted @ 2020-01-02 22:46 被杜撰的风 阅读(450) 评论(0) 推荐(0) 编辑
摘要: ```java /** * Returns a {@code Collector} implementing a cascaded "group by" operation * on input elements of type {@code T}, grouping elements according to a * classification function, and then perfo 阅读全文
posted @ 2020-01-02 22:39 被杜撰的风 阅读(2410) 评论(0) 推荐(0) 编辑
摘要: ```java package java.util.stream; import java.util.Collections; import java.util.EnumSet; import java.util.Objects; import java.util.Set; import java.util.function.BiConsumer; import java.util.functio 阅读全文
posted @ 2020-01-02 22:30 被杜撰的风 阅读(462) 评论(0) 推荐(0) 编辑