static Map<S, O> selectedFieldsToMap(O o, S... fields) { new TreeMap<S, O> map; for (S field : fields) mapPut(map, field, getOpt(o, field)); ret map; }
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: | #1009549 |
Snippet name: | selectedFieldsToMap - get some fields from an object or class and put into map (TreeMap) |
Eternal ID of this version: | #1009549/1 |
Text MD5: | be53e1ca676085f07a44155b9b651625 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-07 18:26:21 |
Source code size: | 166 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 451 / 462 |
Referenced in: | [show references] |