1 | sclass WithName<A> extends Var<A> {
|
2 | S name; |
3 | |
4 | *() {}
|
5 | *(A value) { super(value); }
|
6 | *(S *name, A value) { super(value); }
|
7 | |
8 | toString {
|
9 | if (empty(name)) ret super.toString(); |
10 | ret name + ": " + super.toString(); |
11 | } |
12 | } |
Began life as a copy of #1027095
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027831 |
| Snippet name: | WithName |
| Eternal ID of this version: | #1027831/1 |
| Text MD5: | 8cd89824d5aeb9ae1b758a4ec5fb063e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-14 01:35:30 |
| Source code size: | 244 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 446 / 742 |
| Referenced in: | [show references] |