Libraryless. Click here for Pure Java version (3406L/18K).
1 | static <A, B, C extends Cl<B>> MultiMap<A, B> mapToTreeMultiMap(Map<A, C> map) {
|
2 | if (map == null) null; |
3 | MultiMap<A, B> mm = treeMultiMap(); |
4 | for (A key, Cl<B> values : map) |
5 | mm.putAll(key, values); |
6 | ret mm; |
7 | } |
Began life as a copy of #1028618
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032005 |
| Snippet name: | mapToTreeMultiMap |
| Eternal ID of this version: | #1032005/1 |
| Text MD5: | fb828cdcb1e5a16aeacbaf5d060a82b4 |
| Transpilation MD5: | d0f6e50659362099cb1d57d2e983232b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-10 16:21:26 |
| Source code size: | 223 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 407 / 522 |
| Referenced in: | [show references] |