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

11
LINES

< > BotCompany Repo | #1006241 // concept TimeRange

JavaX fragment (include)

1  
sclass TimeRange extends Concept {
2  
  long from;
3  
  settable long to;
4  
  
5  
  *() {}
6  
  *(long *from) { to = from; }
7  
  
8  
  void addNow() {
9  
    cset(this, to := max(to, now()));
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006241
Snippet name: concept TimeRange
Eternal ID of this version: #1006241/2
Text MD5: 84e3748dc3ed0a87146d556ffb34fe81
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-17 00:04:13
Source code size: 187 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 1180
Version history: 1 change(s)
Referenced in: [show references]