static <A, B> MultiMap<B, A> reverseMultiMap_tree(MultiMap<A, B> map) { MultiMap<B, A> mm = (MultiMap) treeMultiMap(); for (A key : keys(map)) for (B value : map.get(key)) mm.put(value, key); ret mm; }
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: | 268 / 303 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |