当前位置:网站首页>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
边栏推荐
- Demon daddy B2 breaks through grammar and completes orthodox oral practice
- H3C s7000/s7500e/10500 series post stack BFD detection configuration method
- 权限不足
- POJ 3140 contents division "suggestions collection"
- Awk processing JSON processing
- Addition, deletion, modification and query of sqlhelper
- How does codesonar help UAVs find software defects?
- Is embedded system really safe? [how does onespin comprehensively solve the IC integrity problem for the development team]
- C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point
- How to choose financial products? Novice doesn't know anything
猜你喜欢

The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization

Codesonar Webinar
Klocwork code static analysis tool

Measure the height of the building

How to meet the dual needs of security and confidentiality of medical devices?

使用高斯Redis实现二级索引

万字总结数据存储,三大知识点
SQL注入报错注入函数图文详解

C language helps you understand pointers from multiple perspectives (1. Character pointers 2. Array pointers and pointer arrays, array parameter passing and pointer parameter passing 3. Function point

C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
随机推荐
object-c编程tips-timer「建议收藏」
恶魔奶爸 B3 少量泛读,完成两万词汇量+
Klocwork 代码静态分析工具
[function recursion] do you know all five classic examples of simple recursion?
What stocks can a new account holder buy? Is the stock trading account safe
Demon daddy B2 breaks through grammar and completes orthodox oral practice
How to choose fund products? What fund is suitable to buy in July 2022?
【C语言】指针进阶---指针你真的学懂了吗?
恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
SQL injection error report injection function graphic explanation
Measure the height of the building
The little money made by the program ape is a P!
Introduction to referer and referer policy
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
Codeforces 474 F. Ant colony
浅解ARC中的 __bridge、__bridge_retained和__bridge_transfer
Hdu4876zcc love cards (multi check questions)
Apifox interface integrated management new artifact
How does codesonar help UAVs find software defects?