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

3
LINES

< > BotCompany Repo | #1036151 // limitToSafeArraySize

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

Libraryless. Click here for Pure Java version (40L/1K).

static int limitToSafeArraySize(long n) {
  ret (int) Math.min(maximumSafeArraySize(), n);
}

Author comment

Began life as a copy of #1029440

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036151
Snippet name: limitToSafeArraySize
Eternal ID of this version: #1036151/1
Text MD5: bddc53404c7229b636e78d6e4f041827
Transpilation MD5: f95ba978e2e1ff6efb1137008f7352c2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-01 05:56:01
Source code size: 94 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 86
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)