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

5
LINES

< > BotCompany Repo | #1027618 // toDynamicObject

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2348L/15K).

static DynamicObject toDynamicObject(O o) {
  if (o == null) null;
  if (o cast DynamicObject) ret o;
  ret dynamicObject(lightlyShortClassName(o), objectToParams(o));
}

Author comment

Began life as a copy of #1004550

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027618
Snippet name: toDynamicObject
Eternal ID of this version: #1027618/3
Text MD5: 580936cc7f7b71062385d54b0b5073e2
Transpilation MD5: 51d4d15ec5442decabb93865681bac36
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-26 15:45:55
Source code size: 173 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 261
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027624 - toDynamicObject_nonTransient - copy non-transient fields only