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

10
LINES

< > BotCompany Repo | #1023431 // multiValuesAsListOfLists

JavaX fragment (include)

static <A, B> LL<B> multiValuesAsListOfLists(MultiMap<A, B> mm) {
  if (mm == null) null;
  new LL<B> out;
  for (A key : mm.keySet()) {
    L<B> l = mm.get(key);
    if (l(l) > 1)
      out.add(cloneList(l));
  }
  ret out;
}

Author comment

Began life as a copy of #1004755

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: #1023431
Snippet name: multiValuesAsListOfLists
Eternal ID of this version: #1023431/3
Text MD5: f0a7822f9c4da3943ebbdf2839d6a83c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-21 16:46:01
Source code size: 235 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 216 / 252
Version history: 2 change(s)
Referenced in: [show references]