static <A> A shallowCloneToClassWithFields(Class<A> c, O o, S... fields) { if (o == null) null; A a = nuInstance(c); copyFields(o, a, fields); ret a; } static <A> A shallowCloneToClassWithFields(O o, Class<A> c, S... fields) { ret shallowCloneToClassWithFields(c, o, fields); } static <A> A shallowCloneToClassWithFields(Class<A> c, O o, Cl<S> fields) { ret shallowCloneToClassWithFields(c, o, toStringArray(fields)); }
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: | 599 / 629 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |