Libraryless. Click here for Pure Java version (2468L/16K).
transient L<Runnable> onChange = syncList(); void change { pcallFAll(onChange); } selfType onChange(Runnable r) { onChange.add(r); this; } void removeChangeListener(Runnable r) { onChange.remove(r); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025301 |
Snippet name: | onChange mix-in (Include) |
Eternal ID of this version: | #1025301/4 |
Text MD5: | da5f7df1038b8f5160e73906805582f7 |
Transpilation MD5: | a73b3067d86f57258c07b4d82c8927f6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-15 01:32:19 |
Source code size: | 205 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 229 / 506 |
Version history: | 3 change(s) |
Referenced in: | #1025302 - StringClustersWithIDs |