当前位置:网站首页>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
边栏推荐
- [uvalive 6663 count the regions] (DFS + discretization) [easy to understand]
- Unity3d 4.3.4f1执行项目
- Word inversion implements "suggestions collection"
- POJ 3140 contents division "suggestions collection"
- FatMouse&#39; Trade (Hangdian 1009)
- 私募基金在中國合法嗎?安全嗎?
- POJ 3140 Contestants Division「建议收藏」
- 恶魔奶爸 A0 英文零基础的自我提升路
- Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
- Write a jump table
猜你喜欢

Goal: do not exclude yaml syntax. Try to get started quickly

Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)

How does codesonar help UAVs find software defects?
Klocwork 代码静态分析工具

Tensorflow2. How to run under x 1 Code of X

Solve the problem of using uni app mediaerror mediaerror errorcode -5

使用高斯Redis实现二级索引

Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
Mysql子查询关键字的使用方式(exists)

Focusing on safety in 1995, Volvo will focus on safety in the field of intelligent driving and electrification in the future
随机推荐
Introduction to referer and referer policy
The little money made by the program ape is a P!
恶魔奶爸 A3阶段 近常速语流初接触
Referrer和Referrer-Policy简介
Guava multithreading, futurecallback thread calls are uneven
解决使用uni-app MediaError MediaError ErrorCode -5
Codeforces Round #275 (Div. 2) C – Diverse Permutation (构造)[通俗易懂]
Data sorting in string
MinGW MinGW-w64 TDM-GCC等工具链之间的差别与联系「建议收藏」
智能交通焕发勃勃生机,未来会呈现哪些巨变?[通俗易懂]
程序猿赚的那点钱算个P啊!
Demon daddy B3 read extensively in a small amount, and completed 20000 vocabulary+
Is embedded system really safe? [how does onespin comprehensively solve the IC integrity problem for the development team]
A brief understanding of the in arc__ bridge、__ bridge_ Retained and__ bridge_ transfer
Tensorflow2. How to run under x 1 Code of X
Deadlock conditions and preventive treatment [easy to understand]
万字总结数据存储,三大知识点
私募基金在中國合法嗎?安全嗎?
Default constraint and zero fill constraint of MySQL constraint
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)