Checks double value for NULL in database sense. NULL is anything that is not "finite". In this sense the return value is directly opposite of the return value of #isFinite(double) @param value to check @return true if value is "infinite", which includes Double#isNaN(double), positiv
(double value)
| 1044 | * infinities that arise from division by 0. |
| 1045 | */ |
| 1046 | public static boolean isNull(double value) { |
| 1047 | return (Double.doubleToRawLongBits(value) & EXP_BIT_MASK) == EXP_BIT_MASK; |
| 1048 | } |
| 1049 | |
| 1050 | public static boolean isNull(float value) { |
| 1051 | return Float.isNaN(value) || Float.isInfinite(value); |
no outgoing calls