当前位置:网站首页>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
边栏推荐
- Usage of MySQL subquery keywords (exists)
- Goal: do not exclude yaml syntax. Try to get started quickly
- Demon daddy B2 breaks through grammar and completes orthodox oral practice
- Static analysis of software defects codesonar 5.2 release
- Demon daddy A3 stage near normal speed speech flow initial contact
- 恶魔奶爸 B3 少量泛读,完成两万词汇量+
- 私募基金在中国合法吗?安全吗?
- Hdu4876zcc love cards (multi check questions)
- The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization
- Codeforces round 275 (Div. 2) C – diverse permutation (construction) [easy to understand]
猜你喜欢
How to meet the dual needs of security and confidentiality of medical devices?
使用高斯Redis实现二级索引
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
Usage of MySQL subquery keywords (exists)
Ubuntu安装mysql8遇到的问题以及详细安装过程
The little money made by the program ape is a P!
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
[200 opencv routines] 223 Polygon fitting for feature extraction (cv.approxpolydp)
95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
随机推荐
A brief understanding of the in arc__ bridge、__ bridge_ Retained and__ bridge_ transfer
AADL inspector fault tree safety analysis module
Guava multithreading, futurecallback thread calls are uneven
POJ 3140 Contestants Division「建议收藏」
Datatable data conversion to entity
特征生成
Jetty: configure connector [easy to understand]
Contour layout of margin
SQL injection error report injection function graphic explanation
反诈困境,国有大行如何破局?
Is it safe to open an account of BOC shares in kainiu in 2022?
Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
Cocos2d-x game archive [easy to understand]
Cocos2d-x 游戏存档[通俗易懂]
FatMouse&#39; Trade (Hangdian 1009)
Problems encountered in installing mysql8 for Ubuntu and the detailed installation process
Intelligent transportation is full of vitality. What will happen in the future? [easy to understand]
Deadlock conditions and preventive treatment [easy to understand]
MinGW MinGW-w64 TDM-GCC等工具链之间的差别与联系「建议收藏」
Demon daddy C