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

6
LINES

< > BotCompany Repo | #1016258 // callGetters

JavaX fragment (include)

1  
static Map<S, O> callGetters(O o, S... propertyNames) {
2  
  new LinkedHashMap<S, O> map;
3  
  for (S s : propertyNames)
4  
    map.put(s, callOpt(o, "get" + firstToUpper(s)));
5  
  ret map;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016258
Snippet name: callGetters
Eternal ID of this version: #1016258/1
Text MD5: 7e35efcac22ff97e82d674a84e5e54e8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-12 15:13:09
Source code size: 185 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 354 / 385
Referenced in: [show references]