FiniteDoubleValidator

The value must be a finite number — rejects NaN, Infinity, and -Infinity.

Useful on wire-side Double fields: JSON parsers and arithmetic upstream can smuggle non-finite values into otherwise plausible-looking data.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun validate(value: Double): String?

Returns null if value is valid, or a human-readable reason string if invalid.