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

6
LINES

< > BotCompany Repo | #1027930 // cloneWithFields

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2757L/17K).

static <A> A cloneWithFields(O o, S... fields) {
  if (o == null) null;
  A a = (A) nuInstance(o.getClass());
  copyFields(o, a, fields);
  ret a;
}

Author comment

Began life as a copy of #1020417

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027930
Snippet name: cloneWithFields
Eternal ID of this version: #1027930/4
Text MD5: 65d2f77e27b9dd52e5874142112b70a1
Transpilation MD5: 004b8b6d3d55c4d1b235ce3db45d6d57
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-19 00:20:37
Source code size: 153 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 327
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)