Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1032306 // WithURL

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3410L/19K).

sclass WithURL<A> extends Var<A> {
  S url;
  
  *() {}
  *(S *url, A value) { super(value); }
  *(A value) { super(value); }
  
  S url() { ret url; }
  
  toString {
    ret super.toString() + (empty(url) ? "" : " (" + url + ")");
  }
}

Author comment

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: 181 / 332
Version history: 1 change(s)
Referenced in: [show references]