Libraryless. Click here for Pure Java version (3367L/19K).
1 | // second type parameter defaults to Object |
2 | sclass WithTrail<A, B> extends Var<A> { |
3 | B trail; |
4 | |
5 | *() {} |
6 | *(A value) { super(value); } |
7 | *(B *trail, A value) { super(value); } |
8 | |
9 | toString { |
10 | if (trail == null) ret super.toString(); |
11 | ret super.toString() + "\n" + |
12 | indentx("[Trail: " + trail + "]"); |
13 | } |
14 | } |
Began life as a copy of #1026688
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027174 |
Snippet name: | WithTrail |
Eternal ID of this version: | #1027174/3 |
Text MD5: | b738d4b26a264a52ba2ff369140f3ae4 |
Transpilation MD5: | f998ef5fee0cc41cbb2405c4425dfc54 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-23 16:03:59 |
Source code size: | 333 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 611 |
Version history: | 2 change(s) |
Referenced in: | [show references] |