Libraryless. Click here for Pure Java version (2262L/14K).
1 | sclass WithComment<A> extends Var<A> { |
2 | S comment; |
3 | |
4 | *() {} |
5 | *(A value) { super(value); } |
6 | *(S *comment, A value) { super(value); } |
7 | |
8 | toString { |
9 | if (empty(comment)) ret super.toString(); |
10 | ret super.toString() + " [" + comment + "]"; |
11 | } |
12 | } |
Began life as a copy of #1026688
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: | #1027095 |
Snippet name: | WithComment |
Eternal ID of this version: | #1027095/3 |
Text MD5: | a5e48e3c6bfaa21be77e4fbbf57321a6 |
Transpilation MD5: | 0b77ec94e8e89750c71e71738f4b9ba9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-18 19:33:01 |
Source code size: | 265 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 297 / 623 |
Version history: | 2 change(s) |
Referenced in: | [show references] |