1 | static DynamicObject mapMethodLike dynamicObject(S className, O... x) { |
2 | DynamicObject d = new DynamicObject(className); |
3 | for (int i = 0; i < x.length-1; i += 2) |
4 | if (x[i+1] != null) |
5 | setDyn(d, (S) x[i], x[i+1]); |
6 | ret d; |
7 | } |
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: | 615 / 626 |
Version history: | 2 change(s) |
Referenced in: | [show references] |