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

6
LINES

< > BotCompany Repo | #1009549 // selectedFieldsToMap - get some fields from an object or class and put into map (TreeMap)

JavaX fragment (include)

1  
static Map<S, O> selectedFieldsToMap(O o, S... fields) {
2  
  new TreeMap<S, O> map;
3  
  for (S field : fields)
4  
    mapPut(map, field, getOpt(o, field));
5  
  ret map;
6  
}

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: 452 / 463
Referenced in: [show references]