// does not store null values static MultiMap multiMapIndexByMethod(Collection c, S method, O... args) { new MultiMap map; for (O a : c) { O val = callOpt(a, method, args); if (val != null) map.put(val, a); } ret map; }
Began life as a copy of #1011312
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012273 |
Snippet name: | multiMapIndexByMethod |
Eternal ID of this version: | #1012273/1 |
Text MD5: | 8b042cadb0d86d3fa6511597d88512fb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-26 20:37:10 |
Source code size: | 250 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 535 / 543 |
Referenced in: | [show references] |