Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1022154 // ccopyFields2_fromGen - for concepts

JavaX fragment (include)

1  
static <A extends Concept> A ccopyFields2_fromGen(O x, A y, Iterable<S> fields) {
2  
  if (x == null || y == null) ret y;
3  
  for (S field : unnull(fields)) {
4  
    O o = getOpt(x, field);
5  
    cset(y, field, o);
6  
  }
7  
  ret y;
8  
}

Author comment

Began life as a copy of #1021552

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: #1022154
Snippet name: ccopyFields2_fromGen - for concepts
Eternal ID of this version: #1022154/3
Text MD5: 7157cb42138258713eb1842aac3b4327
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-09 23:48:14
Source code size: 226 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 272 / 314
Version history: 2 change(s)
Referenced in: [show references]