1 | static <A> int nIntersectionListSet(Collection<A> l, Set<A> set) { |
2 | if (set == null) ret 0; |
3 | int n = 0; |
4 | for (A a : unnull(l)) |
5 | if (set.contains(a)) ++n; |
6 | ret n; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013905 |
Snippet name: | nIntersectionListSet |
Eternal ID of this version: | #1013905/2 |
Text MD5: | 23e757bc51e53fcd8c12fa753212274b |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-03-14 19:55:38 |
Source code size: | 176 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 352 / 374 |
Version history: | 1 change(s) |
Referenced in: | [show references] |