Libraryless. Click here for Pure Java version (3013L/17K).
static long toLongOpt(O o, long defaultValue default 0) { if (o == null) ret defaultValue; if (o instanceof Number) ret ((Number) o).longValue(); if (o instanceof S) ret parseLongOpt((S) o); ret defaultValue; }
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: | 348 / 472 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |