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

7
LINES

< > BotCompany Repo | #1033247 // toDoubleRange - synonym of intToDoubleRange

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9436L/52K).

static DoubleRange toDoubleRange(IntRange r) {
  ret intToDoubleRange(r);
}

static DoubleRange toDoubleRange(TimestampRange r) {
  ret r == null ?: doubleRange(r.start.unixDate(), r.end.unixDate());
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033247
Snippet name: toDoubleRange - synonym of intToDoubleRange
Eternal ID of this version: #1033247/3
Text MD5: 3a9b636d06b56dbc37993d28efe1852e
Transpilation MD5: 29485346cd35ad73772e69be95bb61f4
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-10 20:04:43
Source code size: 207 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 256
Version history: 2 change(s)
Referenced in: [show references]