Libraryless. Click here for Pure Java version (35L/1K).
1 | static Double maxAllowingNull(Double a, Double b) {
|
2 | if (a == null) ret b; |
3 | if (b == null) ret a; |
4 | ret Math.max(a, b); |
5 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036149 |
| Snippet name: | maxAllowingNull |
| Eternal ID of this version: | #1036149/1 |
| Text MD5: | cdacf2dfc2d8f9715ee21ac3e137264a |
| Transpilation MD5: | b0cfd48ec9ab09aac1f7965cdde2196e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-10-01 05:24:24 |
| Source code size: | 127 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 363 / 450 |
| Referenced in: | [show references] |