当前位置:网站首页>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
- 恶魔奶爸 A0 英文零基础的自我提升路
- Codeforces round 296 (Div. 2) A. playing with paper[easy to understand]
- 华泰证券可以做到万一佣金吗,万一开户安全嘛
- Hdu4876zcc love cards (multi check questions)
- Helix QAC 2020.2 new static test tool maximizes the coverage of standard compliance
- Validutil, "Rethinking the setting of semi supervised learning on graphs"
- [function recursion] do you know all five classic examples of simple recursion?
- Insufficient permissions
- Mahout-Pearson correlation的实现
猜你喜欢
Goal: do not exclude yaml syntax. Try to get started quickly
MySQL约束之默认约束default与零填充约束zerofill
目标:不排斥 yaml 语法。争取快速上手
Codesonar enhances software reliability through innovative static analysis
Ubuntu安装mysql8遇到的问题以及详细安装过程
How to meet the dual needs of security and confidentiality of medical devices?
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
Solve the problem of using uni app mediaerror mediaerror errorcode -5
Klocwork code static analysis tool
SQL注入报错注入函数图文详解
随机推荐
写一下跳表
Codeforces round 296 (Div. 2) A. playing with paper[easy to understand]
POJ 3140 contents division "suggestions collection"
Object-C programming tips timer "suggestions collection"
margin 等高布局
Usage of MySQL subquery keywords (exists)
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
寫一下跳錶
Phoenix JDBC
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
智能交通焕发勃勃生机,未来会呈现哪些巨变?[通俗易懂]
数值法求解最优控制问题(〇)——定义
恶魔奶爸 指南帖——简易版
刚开户的能买什么股票呢?炒股账户安全吗
Is it safe to open an account of BOC shares in kainiu in 2022?
Static analysis of software defects codesonar 5.2 release
Jetty:配置连接器[通俗易懂]
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
神兵利器——敏感文件发现工具
Le capital - investissement est - il légal en Chine? C'est sûr?