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

13
LINES

< > BotCompany Repo | #1026737 // WithFeedback

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

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

sclass WithFeedback<A> extends Var<A> {
  S feedback;
  
  *() {}
  *(A value) { super(value); }
  *(S *feedback, A value) { super(value); }
  
  toString {
    if (empty(feedback)) ret super.toString();
    ret super.toString() + "\n" +
      indentx("[Feedback: " + feedback + "]");
  }
}

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: #1026737
Snippet name: WithFeedback
Eternal ID of this version: #1026737/3
Text MD5: 1651d1e1071d8404f1f3c19416e7520c
Transpilation MD5: b4c361516cf98a2dcc2f960b7a6456e2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 21:38:22
Source code size: 302 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 445
Version history: 2 change(s)
Referenced in: [show references]