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

6
LINES

< > BotCompany Repo | #1027838 // cloneWithFlippedBoolField

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

Libraryless. Click here for Pure Java version (2807L/18K).

1  
static <A> A mapMethodLike cloneWithFlippedBoolField(S field, A o) {
2  
  if (o == null) null;
3  
  o = shallowClone(o);
4  
  setOpt(o, field, not((Bool) getOpt(o, field)));
5  
  ret o;
6  
}

Author comment

Began life as a copy of #1015334

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: #1027838
Snippet name: cloneWithFlippedBoolField
Eternal ID of this version: #1027838/1
Text MD5: dd5f1ac54fa8c8f93133cab2f6544053
Transpilation MD5: 6f4242c27b59160048bb9a739faafc87
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-15 00:44:16
Source code size: 180 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 206 / 270
Referenced in: [show references]