当前位置:网站首页>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
边栏推荐
猜你喜欢
Intelligent software analysis platform embold
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
Codesonar Webinar
Focusing on safety in 1995, Volvo will focus on safety in the field of intelligent driving and electrification in the future
The little money made by the program ape is a P!
Ubuntu安装mysql8遇到的问题以及详细安装过程
MySQL storage expression error
Tensorflow2.x下如何运行1.x的代码
Static analysis of software defects codesonar 5.2 release
Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
随机推荐
How does codesonar help UAVs find software defects?
Insufficient permissions
Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
Deployment, recall and deletion solutions - stsadm and PowerShell "suggestions collection"
uva 12230 – Crossing Rivers(概率)「建议收藏」
Mahout-Pearson correlation的实现
Codeforces round 275 (Div. 2) C – diverse permutation (construction) [easy to understand]
使用枚举实现英文转盲文
浅解ARC中的 __bridge、__bridge_retained和__bridge_transfer
Le capital - investissement est - il légal en Chine? C'est sûr?
Unity3d 4.3.4f1执行项目
【函数递归】简单递归的5个经典例子,你都会吗?
开户必须往账户里面赚钱吗,资金安全吗?
[UVALive 6663 Count the Regions] (dfs + 离散化)[通俗易懂]
现在网上开户安全么?想知道我现在在南宁,到哪里开户比较好?
恶魔奶爸 A1 语音听力初挑战
Data sorting in string
Differences and connections between MinGW, mingw-w64, tdm-gcc and other tool chains "suggestions collection"
I have to use my ID card to open an account. Is the bank card safe? I don't understand it
目标:不排斥 yaml 语法。争取快速上手