Libraryless. Click here for Pure Java version (3367L/19K).
// second type parameter defaults to Object sclass WithTrail<A, B> extends Var<A> { B trail; *() {} *(A value) { super(value); } *(B *trail, A value) { super(value); } toString { if (trail == null) ret super.toString(); ret super.toString() + "\n" + indentx("[Trail: " + trail + "]"); } }
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: | 250 / 608 |
Version history: | 2 change(s) |
Referenced in: | #1031871 - withTrail - make WithTrail #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |