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.

1  
sclass DoneFlag extends Flag {
2  
  transient volatile O error;
3  
  transient bool printErrors;
4  
  
5  
  *() {}
6  
  *(bool *printErrors) {}
7  
  
8  
  void done() { raise(); }
9  
  void done aka setError(O error) {
10  
    this.error = error;
11  
    if (printErrors)
12  
      printStackTrace_gen(error);
13  
    raise();
14  
  }
15  
  
16  
  bool hasError() { ret error != null; }
17  
  bool isDone() { ret isUp(); }
18  
}

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: 165 / 268
Version history: 3 change(s)
Referenced in: [show references]