1 | static <A, B> MultiMap<B, A> reverseMultiMap_tree(MultiMap<A, B> map) { |
2 | MultiMap<B, A> mm = (MultiMap) treeMultiMap(); |
3 | for (A key : keys(map)) |
4 | for (B value : map.get(key)) |
5 | mm.put(value, key); |
6 | ret mm; |
7 | } |
Began life as a copy of #1016375
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: | #1022631 |
Snippet name: | reverseMultiMap_tree |
Eternal ID of this version: | #1022631/1 |
Text MD5: | c74d05c1df64f96faf3a5ec020113ee3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-25 13:30:41 |
Source code size: | 223 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 267 / 302 |
Referenced in: | [show references] |