Libraryless. Click here for Pure Java version (15627L/101K).
static <A extends Concept> A ccopyFields_withConverter(Concept x, A y, S... fields) { if (x == null || y == null) ret y; if (empty(fields)) { // assume we should copy all fields for (S field : conceptFields(x)) cSmartSetField_withConverter(y, field, cget(x, field)); } else for (S field : fields) { O o = cget(x, field); if (o != null) cSmartSetField_withConverter(y, field, o); } ret y; }
Began life as a copy of #1013534
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031344 |
| Snippet name: | ccopyFields_withConverter - for concepts |
| Eternal ID of this version: | #1031344/1 |
| Text MD5: | 5944ef85a9603daa5f8b42149bc18209 |
| Transpilation MD5: | 5ee2530bb74ebd1b2814e09108077eb3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-05 18:09:46 |
| Source code size: | 448 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 367 / 470 |
| Referenced in: | [show references] |