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

10
LINES

< > BotCompany Repo | #1006241 - concept TimeRange

JavaX fragment (include)

sclass TimeRange extends Concept {
  long from, to;
  
  *() {}
  *(long *from) { to = from; }
  
  void addNow() {
    cset(this, to := max(to, now()));
  }
}

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, sawdedvomwva, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1006241
Snippet name: concept TimeRange
Eternal ID of this version: #1006241/1
Text MD5: af8bac9b4f021fef5f6ea395d6c2cbc7
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-25 20:27:47
Source code size: 170 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 714
Referenced in: [show references]

Formerly at http://tinybrain.de/1006241 & http://1006241.tinybrain.de