Libraryless. Click here for Pure Java version (6195L/35K).
1 | static <A extends IHasChangeListeners, B> IF0WithChangeListeners<B> |
2 | calculatedField_hasChangeListeners(IF1<A, B> f, A a) { |
3 | var var = new VarWithNotify<B>(f.get(a)); |
4 | addWeakChangeListener(a, var, v -> v.set(f.get(a))); |
5 | ret var; |
6 | } |
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: | 187 / 277 |
Version history: | 6 change(s) |
Referenced in: | [show references] |