Libraryless. Click here for Pure Java version (3013L/17K).
1 | static long toLongOpt(O o, long defaultValue default 0) { |
2 | if (o == null) ret defaultValue; |
3 | if (o instanceof Number) |
4 | ret ((Number) o).longValue(); |
5 | if (o instanceof S) |
6 | ret parseLongOpt((S) o); |
7 | ret defaultValue; |
8 | } |
Began life as a copy of #1019477
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031806 |
Snippet name: | toLongOpt |
Eternal ID of this version: | #1031806/1 |
Text MD5: | e58e513a8b2a3ee1e671c3efe79d2b85 |
Transpilation MD5: | 9ee66c35507d28d1fbf1722cf69a55d6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-01 20:13:24 |
Source code size: | 233 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 148 / 225 |
Referenced in: | [show references] |