Libraryless. Click here for Pure Java version (35L/1K).
static Double maxAllowingNull(Double a, Double b) { if (a == null) ret b; if (b == null) ret a; ret Math.max(a, b); }
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: | 125 / 173 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |