当前位置:网站首页>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
边栏推荐
- margin 等高布局
- 恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
- Apifox interface integrated management new artifact
- 寫一下跳錶
- object-c编程tips-timer「建议收藏」
- Klocwork code static analysis tool
- Addition, deletion, modification and query of sqlhelper
- Is embedded system really safe? [how does onespin comprehensively solve the IC integrity problem for the development team]
- Referrer和Referrer-Policy简介
- Usage of MySQL subquery keywords (exists)
猜你喜欢

CodeSonar如何帮助无人机查找软件缺陷?

AADL inspector fault tree safety analysis module

Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance

【C语言】指针进阶---指针你真的学懂了吗?

Implement secondary index with Gaussian redis

Problems encountered in installing mysql8 for Ubuntu and the detailed installation process

Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system

Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
Default constraint and zero fill constraint of MySQL constraint
MySQL storage expression error
随机推荐
FatMouse&#39; Trade(杭电1009)
Mysql子查询关键字的使用方式(exists)
AADL inspector fault tree safety analysis module
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
Deployment, recall and deletion solutions - stsadm and PowerShell "suggestions collection"
Intelligent software analysis platform embold
Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
Codeforces round 296 (Div. 2) A. playing with paper[easy to understand]
恶魔奶爸 B3 少量泛读,完成两万词汇量+
智能交通焕发勃勃生机,未来会呈现哪些巨变?[通俗易懂]
恶魔奶爸 A3阶段 近常速语流初接触
部署、收回和删除解决方式—-STSADM和PowerShell「建议收藏」
HOJ 2245 浮游三角胞(数学啊 )
Measure the height of the building
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
阿洛的烦恼
Klocwork code static analysis tool
Alibaba cloud award winning experience: how to mount NAS file system through ECS
Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
Unity3d 4.3.4f1 execution project