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

7
LINES

< > BotCompany Repo | #1029160 // dm_clearAndReplace - clear & replace object in Transient Object Holder

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

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

1  
// returns object
2  
static <A> A dm_clearAndReplace(O holderModule, IF0<A> makeNewObject) {
3  
  dm_replace(holderModule, null);
4  
  A o = callF(makeNewObject);
5  
  dm_call(holderModule, 'set, o);
6  
  ret o;
7  
}

Author comment

Began life as a copy of #1029128

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: #1029160
Snippet name: dm_clearAndReplace - clear & replace object in Transient Object Holder
Eternal ID of this version: #1029160/1
Text MD5: cb9368cbaae7c7d6cc3b2a03c744b6c3
Transpilation MD5: 6d193c9a0d0374cc69a8e1bbb1844675
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-23 12:08:15
Source code size: 204 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 290
Referenced in: [show references]