当前位置:网站首页>Take the intersection of two sets
Take the intersection of two sets
2022-07-07 21:20:00 【Maple forest [email protected]】
List<Long> departmentUserNos = departmentVOList.stream().map(UserDepartmentVO::getUserNo).collect(toList());
List<Long> postUserNos = uo.stream().map(UserPostVO::getUserNo).collect(toList());
// Extract intersection data
List<Long> collect = departmentUserNos.stream().filter(postUserNos::contains).collect(toList());
// Take the difference set
departmentUserNos.removeAll(collect )---> The rest in the set is departmentUserNos Unique
Empathy :
postUserNos.removeAll(collect ) ---> The rest in the set is postUserNos Unique
版权声明
本文为[Maple forest [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071812417642.html
边栏推荐
- DataTable数据转换为实体
- sqlHelper的增删改查
- Ubuntu安装mysql8遇到的问题以及详细安装过程
- Micro service remote debug, nocalhost + rainbow micro service development second bullet
- Demon daddy guide post - simple version
- Guava multithreading, futurecallback thread calls are uneven
- Apifox interface integrated management new artifact
- Alibaba cloud award winning experience: how to mount NAS file system through ECS
- How to meet the dual needs of security and confidentiality of medical devices?
- CodeSonar如何帮助无人机查找软件缺陷?
猜你喜欢
Default constraint and zero fill constraint of MySQL constraint
MySQL约束之默认约束default与零填充约束zerofill
How to meet the dual needs of security and confidentiality of medical devices?
The little money made by the program ape is a P!
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)
万字总结数据存储,三大知识点
Klocwork code static analysis tool
Implement secondary index with Gaussian redis
Tensorflow2. How to run under x 1 Code of X
Goal: do not exclude yaml syntax. Try to get started quickly
随机推荐
如何挑选基金产品?2022年7月份适合买什么基金?
CodeSonar如何帮助无人机查找软件缺陷?
Solve the problem of using uni app mediaerror mediaerror errorcode -5
Demon daddy B2 breaks through grammar and completes orthodox oral practice
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
The little money made by the program ape is a P!
现在网上开户安全么?想知道我现在在南宁,到哪里开户比较好?
寫一下跳錶
数值法求解最优控制问题(〇)——定义
Object-C programming tips timer "suggestions collection"
部署、收回和删除解决方式—-STSADM和PowerShell「建议收藏」
I wrote a markdown command line gadget, hoping to improve the efficiency of sending documents by garden friends!
Postgresql数据库character varying和character的区别说明
gridView自己定义做时间排版「建议收藏」
What stocks can a new account holder buy? Is the stock trading account safe
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
EasyUI date control emptying value
A brief understanding of the in arc__ bridge、__ bridge_ Retained and__ bridge_ transfer
Deadlock conditions and preventive treatment [easy to understand]
Validutil, "Rethinking the setting of semi supervised learning on graphs"