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

14
LINES

< > BotCompany Repo | #1032673 // WithPollValue

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

Libraryless. Click here for Pure Java version (5426L/32K).

sclass WithPollValue<A> extends LazyVar<A> {
  O pollValue = noPoll;
  
  // indicates no polling needed
  static new O noPoll;
  
  *() {}
  *(O *pollValue, IF0<A> makeValue) { super(makeValue); }
  *(O *pollValue, A value) { super(value); }

  O pollValue() { ret pollValue; }
  
  toString { ret "WithPollValue " + pollValue + " " + super.toString(); }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032673
Snippet name: WithPollValue
Eternal ID of this version: #1032673/6
Text MD5: c85aa99f17a002f32720ed6d1a138b1f
Transpilation MD5: 5670d89b85b31194723518a9d6bb13ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 05:09:38
Source code size: 370 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 301
Version history: 5 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)