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

14
LINES

< > BotCompany Repo | #1008631 - class IntRange - range of ints (start/end)

JavaX fragment (include)

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

Author comment

Began life as a copy of #1005873

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, tslmcundralx, tvejysmllsmz, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1008631
Snippet name: class IntRange - range of ints (start/end)
Eternal ID of this version: #1008631/10
Text MD5: d96d10cb2e01545352a258413525466c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-13 20:06:27
Source code size: 235 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 297 / 1295
Version history: 9 change(s)
Referenced in: [show references]

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