Libraryless. Click here for Pure Java version (9928L/55K).
static <A, B> MultiMap<B, A> reversedOrderedMultiMap(MultiMap<A, B> map) { MultiMap<B, A> mm = orderedMultiMap(); for (A key : keys(map)) for (B value : map.get(key)) mm.put(value, key); ret mm; }
Began life as a copy of #1017368
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034843 |
Snippet name: | reversedOrderedMultiMap |
Eternal ID of this version: | #1034843/4 |
Text MD5: | 16c4446f3a058f481183b303b6f5d69a |
Transpilation MD5: | 92297106f2dcde37dc9d384576dac117 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-11 04:09:37 |
Source code size: | 218 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 207 / 269 |
Version history: | 3 change(s) |
Referenced in: | [show references] |