static <A> MultiMap<S, A> ciMultiMapFromKeyAndValueField(Collection l, S keyField, S valueField) { MultiMap<S, A> mm = ciMultiMap(); if (l != null) for (O o : l) mm.put((S) getOpt(o, keyField), (A) getOpt(o, valueField)); ret mm; }
Began life as a copy of #1020014
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020017 |
Snippet name: | ciMultiMapFromKeyAndValueField |
Eternal ID of this version: | #1020017/4 |
Text MD5: | a4813e9f324c54c77282a7fcebf049b7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-23 10:18:44 |
Source code size: | 246 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 330 / 352 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021644 - multiMapFromKeyAndValueField |