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

3
LINES

< > BotCompany Repo | #1031756 // clampToInt

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

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

1  
static int clampToInt(long l) {
2  
  ret (int) clamp(l, Int.MIN_VALUE, Int.MAX_VALUE);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031756
Snippet name: clampToInt
Eternal ID of this version: #1031756/2
Text MD5: 93f83ee5462071712e9dee45dc56ccef
Transpilation MD5: 440b0a5e400a589ed6c821a6717bb538
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 06:44:49
Source code size: 87 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 287
Version history: 1 change(s)
Referenced in: [show references]