// does not store null values static Map indexByMethod(Collection c, S method, O... args) { new HashMap 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 #1002467
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: | #1012274 |
Snippet name: | indexByMethod - returns HashMap |
Eternal ID of this version: | #1012274/1 |
Text MD5: | e926796561c867abd66fd3e3d1277211 |
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:38:14 |
Source code size: | 236 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 415 / 457 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1022494 - indexByCalculatedField_treeMap |