1 | static <A extends Concept> A ccopyFields2(Concept x, A y, Iterable<S> fields) {
|
2 | if (x == null || y == null) ret y; |
3 | for (S field : unnull(fields)) {
|
4 | O o = cget(x, field); |
5 | if (o != null) |
6 | cset(y, field, o); |
7 | } |
8 | ret y; |
9 | } |
Began life as a copy of #1013534
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1021552 |
| Snippet name: | ccopyFields2 - for concepts |
| Eternal ID of this version: | #1021552/1 |
| Text MD5: | f60c8d082f25681e827a9e509b00f95b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-17 19:25:09 |
| Source code size: | 244 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 549 / 560 |
| Referenced in: | [show references] |