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   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, tvejysmllsmz, 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: 27 / 97
Version history: 2 change(s)
Referenced in: #1003674 #1027831

Formerly at http://tinybrain.de/1027095 & http://1027095.tinybrain.de