Set<ProductVO> authorityList = Stream.of(childrenList, parentList).flatMap(Collection::stream).collect(Collectors.toSet());
两个集合合并为set,为什么里面的元素没有去重?
equals和hashcode也重写过了
Set<ProductVO> authorityList = Stream.of(childrenList, parentList).flatMap(Collection::stream).collect(Collectors.toSet());
两个集合合并为set,为什么里面的元素没有去重?
equals和hashcode也重写过了