static <A> void linkVarsVerbose(IVarWithNotify<A> var1, IVarWithNotify<A> var2) { if (var1 == null || var2 == null) ret; var2.onChange(value -> { print("linkVars: Setting var1 to " + value); var1.set(value); }); var1.onChangeAndNow(value -> { print("linkVars: Setting var2 to " + value); var2.set(value); }); }
Began life as a copy of #1034554
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034555 |
Snippet name: | linkVarsVerbose |
Eternal ID of this version: | #1034555/1 |
Text MD5: | 9cbcd4b6f99e54a7324d80a948d83d7c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-12 22:54:21 |
Source code size: | 346 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 170 / 171 |
Referenced in: | [show references] |