1 | static int or0(Int i) { ret i == null ? 0 : i; } |
2 | static long or0(Long l) { ret l == null ? 0L : l; } |
3 | static double or0(Double d) { ret d == null ? 0.0 : d; } |
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: | #1022637 |
Snippet name: | or0 - unnull Int, Double etc. |
Eternal ID of this version: | #1022637/7 |
Text MD5: | 7cd1a185d6ed8327865a2867f9afaac3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-15 22:27:47 |
Source code size: | 159 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 328 / 404 |
Version history: | 6 change(s) |
Referenced in: | [show references] |