sclass VarInConcept<A> implements IVar<A> { IVar<A> v; Concept cc; *() {} // for persistence *(IVar<A> *v, Concept *cc) {} public void set(A a) { v.set(a); change(); } public synchronized A get() { ret v.get(); } public synchronized bool has() { ret v.has(); } public synchronized void clear() { v.clear(); change(); } void change() { if (cc != null) cc.change(); } IVar<A> unwrap() { ret v; } toString { ret str(v); } }
Began life as a copy of #1009406
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1009538 |
| Snippet name: | VarInConcept |
| Eternal ID of this version: | #1009538/5 |
| Text MD5: | 2e87abd694e977e267244f941d80a45c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-04 00:21:07 |
| Source code size: | 474 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 706 / 1821 |
| Version history: | 4 change(s) |
| Referenced in: | #1010571 - persistentSecretText #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |