摘要:
//按照某个字段去重 public static <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) { Map<Object, Boolean> seen = new ConcurrentHashMap<>(); 阅读全文
posted @ 2020-11-15 17:00
动力起点
阅读(164)
评论(0)
推荐(0)
摘要:
list = list.stream().collect(Collectors.collectingAndThen(Collectors.toCollection( () -> new TreeSet<>(Comparator.comparing(o -> o.getNewsId() + "#" + 阅读全文
posted @ 2020-11-15 16:50
动力起点
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号