1 | sclass VarInConcept<A> implements IVar<A> { |
2 | IVar<A> v; |
3 | Concept cc; |
4 | |
5 | *() {} // for persistence |
6 | *(IVar<A> *v, Concept *cc) {} |
7 | |
8 | public void set(A a) { v.set(a); change(); } |
9 | public synchronized A get() { ret v.get(); } |
10 | public synchronized bool has() { ret v.has(); } |
11 | public synchronized void clear() { v.clear(); change(); } |
12 | |
13 | void change() { if (cc != null) cc.change(); } |
14 | |
15 | IVar<A> unwrap() { ret v; } |
16 | |
17 | toString { ret str(v); } |
18 | } |
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: | 489 / 1593 |
Version history: | 4 change(s) |
Referenced in: | [show references] |