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

6
LINES

< > BotCompany Repo | #1015060 // shallowCloneToClass - make instance and copyFields; returns null on null

JavaX fragment (include)

static <A> A nuLike shallowCloneToClass(Class<A> c, O o) {
  if (o == null) null;
  A a = nuInstance(c);
  copyFields(o, a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015060
Snippet name: shallowCloneToClass - make instance and copyFields; returns null on null
Eternal ID of this version: #1015060/6
Text MD5: 4c4dc585af3eda8086f4b81657d34995
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-09 14:59:45
Source code size: 140 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 409 / 449
Version history: 5 change(s)
Referenced in: [show references]