Transpiled version (90L) is out of date.
static LongRange cutLongRangeToGranularity(LongRange r, long granularity) { if (r == null || granularity < 1) ret r; ret LongRange( roundUpTo(granularity, r.start), roundDownTo(granularity, r.end)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028633 |
Snippet name: | cutLongRangeToGranularity |
Eternal ID of this version: | #1028633/2 |
Text MD5: | 51153ce7d8f0b857ae5285f4bf30580b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-29 13:42:48 |
Source code size: | 217 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 210 / 293 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |