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

7
LINES

< > BotCompany Repo | #1018439 // lengthOfAllFields

JavaX fragment (include)

1  
static Map<S, Int> lengthOfAllFields(O o) {
2  
  new TreeMap<S, Int> map;
3  
  for (S field : allFields(o)) pcall-silent {
4  
    map.put(field, l(get(o, field)));
5  
  }
6  
  ret map;
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018439
Snippet name: lengthOfAllFields
Eternal ID of this version: #1018439/1
Text MD5: 45aec41e7cdac1151119009f68160c0a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-30 15:32:30
Source code size: 177 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 331 / 373
Referenced in: [show references]