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

6
LINES

< > BotCompany Repo | #1034480 // getterVarOnly

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

Libraryless. Click here for Pure Java version (6372L/36K).

1  
static <A> IVarWithNotify<A> getterVarOnly(IVarWithNotify<A> var) {
2  
  if (var == null) null;
3  
  var var2 = new VirtualVar(-> var!, null);
4  
  addWeakChangeListener(var, var2);
5  
  ret var2;
6  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034480
Snippet name: getterVarOnly
Eternal ID of this version: #1034480/1
Text MD5: 92214589fe9d56bb18664cd4257e492f
Transpilation MD5: 0997edb9e982f6b0cd9229defe0f5ad9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-08 05:55:56
Source code size: 191 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 152 / 225
Referenced in: [show references]