Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1032005 // mapToTreeMultiMap

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3406L/18K).

static <A, B, C extends Cl<B>> MultiMap<A, B> mapToTreeMultiMap(Map<A, C> map) {
  if (map == null) null;
  MultiMap<A, B> mm = treeMultiMap();
  for (A key, Cl<B> values : map)
    mm.putAll(key, values);
  ret mm;
}

Author comment

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: 143 / 202
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)