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

6
LINES

< > BotCompany Repo | #1034469 // calculatedField_hasChangeListeners

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

Libraryless. Click here for Pure Java version (6195L/35K).

static <A extends IHasChangeListeners, B> IF0WithChangeListeners<B>
  calculatedField_hasChangeListeners(IF1<A, B> f, A a) {
  var var = new VarWithNotify<B>(f.get(a));
  addWeakChangeListener(a, var, v -> v.set(f.get(a)));
  ret var;
}

Author comment

Began life as a copy of #1034146

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034469
Snippet name: calculatedField_hasChangeListeners
Eternal ID of this version: #1034469/7
Text MD5: 4473d9967be86de6eb2d8f76c203b885
Transpilation MD5: 3ec4079ac82edd179fe6814ecd986ab0
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-08 02:25:11
Source code size: 241 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 275
Version history: 6 change(s)
Referenced in: [show references]