1 | static <A> A nuLike shallowCloneToClass(Class<A> c, O o) { |
2 | if (o == null) null; |
3 | A a = nuInstance(c); |
4 | copyFields(o, a); |
5 | ret a; |
6 | } |
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: | 503 / 553 |
Version history: | 5 change(s) |
Referenced in: | [show references] |