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)

static <A extends Concept> A ccopyFields2_fromGen(O x, A y, Iterable<S> fields) {
  if (x == null || y == null) ret y;
  for (S field : unnull(fields)) {
    O o = getOpt(x, field);
    cset(y, field, o);
  }
  ret y;
}

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: 271 / 312
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022155 - ccopyFields2_gen - for concepts