1 | static <A, B extends Collection> L<A> keysWithMultiValues(Map<A, B> map) { |
2 | new L<A> l; |
3 | if (map != null) for (A key, B value : map) { |
4 | if (l(value) > 1) |
5 | l.add(key); |
6 | } |
7 | ret l; |
8 | } |
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: | #1021834 |
Snippet name: | keysWithMultiValues |
Eternal ID of this version: | #1021834/2 |
Text MD5: | b7e87e5d50317334a212b3d7622d9ebe |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-02 21:21:14 |
Source code size: | 198 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 309 / 334 |
Version history: | 1 change(s) |
Referenced in: | [show references] |