Libraryless. Click here for Pure Java version (15627L/101K).
1 | static <A extends Concept> A ccopyFields_withConverter(Concept x, A y, S... fields) { |
2 | if (x == null || y == null) ret y; |
3 | if (empty(fields)) { // assume we should copy all fields |
4 | for (S field : conceptFields(x)) |
5 | cSmartSetField_withConverter(y, field, cget(x, field)); |
6 | } else |
7 | for (S field : fields) { |
8 | O o = cget(x, field); |
9 | if (o != null) |
10 | cSmartSetField_withConverter(y, field, o); |
11 | } |
12 | ret y; |
13 | } |
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: | 156 / 208 |
Referenced in: | [show references] |