static int toIntOpt(O o, int defaultValue default 0) { if (o == null) ret defaultValue; if (o instanceof Number) ret ((Number) o).intValue(); if (o instanceof S) ret parseIntOpt((S) o); ret defaultValue; }
Began life as a copy of #1002621
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019477 |
Snippet name: | toIntOpt |
Eternal ID of this version: | #1019477/2 |
Text MD5: | e5746682637e6813aaa8f3a7a486a678 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-22 09:20:45 |
Source code size: | 228 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 302 / 335 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020918 - toIntOrMinus1 #1031806 - toLongOpt |