摘要: 所以记录下。 需求list的方法说明备注 交集 listA.retainAll(listB) listA内容变为listA和listB都存在的对象 listB不变 差集 listA.removeAll(listB) listA中存在的listB的内容去重 listB不变 并集 listA.remov 阅读全文
posted @ 2021-11-30 09:26 Fallen-2020 阅读(45) 评论(0) 推荐(0)
摘要: 1.LIst 转Map stream().collect(Collectors.toMap(SplaLineSnDTO::getId, Function.identity()))2. List对象 先分组 在取其中一个字段 转List stream().collect(Collectors.grou 阅读全文
posted @ 2021-11-30 09:23 Fallen-2020 阅读(77) 评论(0) 推荐(0)