1 | static <A> int multiSetTotalCountForKeys(MultiSet<A> ms, Collection<A> keys) { |
2 | int n = 0; |
3 | if (keys != null) for (A a : keys) |
4 | n += ms.get(a); |
5 | ret n; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021691 |
Snippet name: | multiSetTotalCountForKeys |
Eternal ID of this version: | #1021691/1 |
Text MD5: | c01428c3e442ea74b748c6f4afd20211 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-24 15:21:31 |
Source code size: | 164 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 245 / 291 |
Referenced in: | [show references] |