Libraryless. Click here for Pure Java version (6419L/36K).
sclass SimpleLiveValue<A> extends LiveValue<A> is IVarWithNotify<A> { event change; Class<A> type; volatile A value; *(Class<A> *type) {} *(Class<A> *type, A *value) {} public Class<A> getType() { ret type; } public A get() { ret value; } void fireChanged { change(); } public void set(A a) { if (neq(value, a)) { value = a; fireChanged(); } } }
Began life as a copy of #1015555
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015556 |
Snippet name: | SimpleLiveValue |
Eternal ID of this version: | #1015556/11 |
Text MD5: | e1647d54eddf34f5621b4d8fa28e736e |
Transpilation MD5: | 7a7da60e33053c1da2062419d71aea0c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-08 07:37:40 |
Source code size: | 383 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 604 / 1367 |
Version history: | 10 change(s) |
Referenced in: | [show references] |