标签:Collector style set code eset ndt stream subject toc
subjects = subjects.stream().collect( Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(Subjects::getId))), ArrayList::new) );
标签:Collector style set code eset ndt stream subject toc
原文地址:https://www.cnblogs.com/chenziyue/p/13175904.html