11 2021 档案

摘要:很明显 new ArrayList()是创建一个Collection实例,它是Collection集合下面的一个实现类(中间继承了AbstractList),它的实例有Collection的增加,删除,修改等方法, ArrayList平常用的很多,这里就不过多说明,主要说一下Collections. 阅读全文
posted @ 2021-11-17 20:04 threadThread 阅读(1194) 评论(0) 推荐(0)
摘要:ArrayList<DeptEntity> disList = newList.stream().collect( Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparin 阅读全文
posted @ 2021-11-17 19:39 threadThread 阅读(278) 评论(0) 推荐(0)