Libraryless. Click here for Pure Java version (3410L/19K).
1 | sclass WithURL<A> extends Var<A> { |
2 | S url; |
3 | |
4 | *() {} |
5 | *(S *url, A value) { super(value); } |
6 | *(A value) { super(value); } |
7 | |
8 | S url() { ret url; } |
9 | |
10 | toString { |
11 | ret super.toString() + (empty(url) ? "" : " (" + url + ")"); |
12 | } |
13 | } |
Began life as a copy of #1026686
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032306 |
Snippet name: | WithURL |
Eternal ID of this version: | #1032306/2 |
Text MD5: | c34fb94fecc67cdc426040530ccae541 |
Transpilation MD5: | 14246bf02517a23667a3807b7b221842 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-27 02:44:40 |
Source code size: | 250 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 182 / 333 |
Version history: | 1 change(s) |
Referenced in: | [show references] |