1 | static <A> A shallowCloneToClassWithFields(Class<A> c, O o, S... fields) { |
2 | if (o == null) null; |
3 | A a = nuInstance(c); |
4 | copyFields(o, a, fields); |
5 | ret a; |
6 | } |
7 | |
8 | static <A> A shallowCloneToClassWithFields(O o, Class<A> c, S... fields) { |
9 | ret shallowCloneToClassWithFields(c, o, fields); |
10 | } |
11 | |
12 | static <A> A shallowCloneToClassWithFields(Class<A> c, O o, Cl<S> fields) { |
13 | ret shallowCloneToClassWithFields(c, o, toStringArray(fields)); |
14 | } |
Began life as a copy of #1015060
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020417 |
Snippet name: | shallowCloneToClassWithFields |
Eternal ID of this version: | #1020417/4 |
Text MD5: | b1502b6ab444eaf69a3700a48be406db |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-09 23:01:29 |
Source code size: | 448 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 320 / 369 |
Version history: | 3 change(s) |
Referenced in: | [show references] |