//去重
classList = classList.stream().collect(
collectingAndThen(
toCollection(() -> new TreeSet<>(comparing(n -> n.getId()))), ArrayList::new)
);
//去重
classList = classList.stream().collect(
collectingAndThen(
toCollection(() -> new TreeSet<>(comparing(n -> n.getId()))), ArrayList::new)
);