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

12
LINES

< > BotCompany Repo | #1027095 // WithComment

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

Libraryless. Click here for Pure Java version (2262L/14K).

sclass WithComment<A> extends Var<A> {
  S comment;
  
  *() {}
  *(A value) { super(value); }
  *(S *comment, A value) { super(value); }
  
  toString {
    if (empty(comment)) ret super.toString();
    ret super.toString() + " [" + comment + "]";
  }
}

Author comment

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: 294 / 618
Version history: 2 change(s)
Referenced in: [show references]