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

18
LINES

< > BotCompany Repo | #1033667 // DoneFlag - also holds an optional error

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

Transpiled version (4624L) is out of date.

sclass DoneFlag extends Flag {
  transient volatile O error;
  transient bool printErrors;
  
  *() {}
  *(bool *printErrors) {}
  
  void done() { raise(); }
  void done aka setError(O error) {
    this.error = error;
    if (printErrors)
      printStackTrace_gen(error);
    raise();
  }
  
  bool hasError() { ret error != null; }
  bool isDone() { ret isUp(); }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033667
Snippet name: DoneFlag - also holds an optional error
Eternal ID of this version: #1033667/4
Text MD5: 06746477fa7438037d7554f078044150
Author: stefan
Category: javax / screen recognition
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-26 17:18:09
Source code size: 385 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 266
Version history: 3 change(s)
Referenced in: [show references]