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

7
LINES

< > BotCompany Repo | #1004550 // dynamicObject - make instance of DynamicObject

JavaX fragment (include)

static DynamicObject mapMethodLike dynamicObject(S className, O... x) {
  DynamicObject d = new DynamicObject(className);
  for (int i = 0; i < x.length-1; i += 2)
    if (x[i+1] != null)
      setDyn(d, (S) x[i], x[i+1]);
  ret d;
}

Author comment

Began life as a copy of #1001695

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004550
Snippet name: dynamicObject - make instance of DynamicObject
Eternal ID of this version: #1004550/3
Text MD5: 4bac7b9ce891178d7939ece98b2bc198
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-21 23:01:26
Source code size: 239 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 627
Version history: 2 change(s)
Referenced in: #1004849 - dO - synonym of dynamicObject
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027618 - toDynamicObject