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

14
LINES

< > BotCompany Repo | #1020603 - class LongRange - range of longs (start/end)

JavaX fragment (include)

final sclass LongRange {
  long start, end;
  
  *() {}
  *(long *start, long *end) {}
  
  [stdEq]
  
  long length() { ret end-start; }
  
  sS _fieldOrder = "start end";
  
  toString { ret "[" + start + ";" + end + "]"; }
}

Author comment

Began life as a copy of #1008631

download  show line numbers  debug dex   

Travelled to 4 computer(s): cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1020603
Snippet name: class LongRange - range of longs (start/end)
Eternal ID of this version: #1020603/1
Text MD5: 6bd2d81029317d44cecd63cfa0c6c7b6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-28 00:39:13
Source code size: 240 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 78 / 306
Referenced in: [show references]

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