Libraryless. Click here for Pure Java version (100L/1K).
1 | static <A, B extends Collection<S>> Map<S, A> reversePseudoMultiMapAsCIMap(Map<A, B> mm) { |
2 | Map<S, A> map = ciMap(); |
3 | for (A a : keys(mm)) |
4 | for (S b : mm.get(a)) |
5 | map.put(b, a); |
6 | ret map; |
7 | } |
Began life as a copy of #1005171
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: | #1023300 |
Snippet name: | reversePseudoMultiMapAsCIMap |
Eternal ID of this version: | #1023300/3 |
Text MD5: | 1dcdc8259544023b1fdd16ab34e53231 |
Transpilation MD5: | d8b714b2e98354b47470c69c8d7a0394 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-24 18:45:54 |
Source code size: | 206 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 270 / 367 |
Version history: | 2 change(s) |
Referenced in: | [show references] |