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

9
LINES

< > BotCompany Repo | #1022496 // indexByCalculatedField_treeMultiMap

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

Libraryless. Click here for Pure Java version (2793L/17K).

static <B, A> MultiMap<B, A> lambdaMapLike indexByCalculatedField_treeMultiMap(IF1<A, B> f, Iterable<A> l) {
  MultiMap<B, A> map = treeMultiMap();
  fOr (A a : l) {
    B val = f.get(a);
    if (val != null)
      map.put(val, a);
  }
  ret map;
}

Author comment

Began life as a copy of #1022494

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1022496
Snippet name: indexByCalculatedField_treeMultiMap
Eternal ID of this version: #1022496/3
Text MD5: 5ee3540b65ba1c04c92fd488e2c909f7
Transpilation MD5: 08ab904fd5200b65d0abac492ddd5956
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-06 15:50:41
Source code size: 256 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 235 / 319
Version history: 2 change(s)
Referenced in: [show references]