1 | static Number parseIntOrLong(String s) { |
2 | long l = parseLong(s); |
3 | ret longIsInt(l) ? (Number) (int) l : (Number) l; |
4 | } |
Began life as a copy of #1001246
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022020 |
Snippet name: | parseIntOrLong |
Eternal ID of this version: | #1022020/1 |
Text MD5: | e48d10989081859d856286fd9380c3c2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-05 20:08:12 |
Source code size: | 122 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 257 / 286 |
Referenced in: | [show references] |