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

4
LINES

< > BotCompany Repo | #1015079 // setMulti - set multiple fields in object

JavaX fragment (include)

static void setMulti(O o, O... params) {
  for (int i = 0; i+1 < l(params); i += 2)
    set(o, (S) params[i], params[i+1]);
}

Author comment

Began life as a copy of #1000415

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: #1015079
Snippet name: setMulti - set multiple fields in object
Eternal ID of this version: #1015079/1
Text MD5: 4b2da35788140bf408f69e91acb98c48
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 21:36:35
Source code size: 128 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 437
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)