DoubleRangeValidator

Base for Double range validators: the value must be finite and in min..max (inclusive).

NaN is never in range, so it is always rejected.

object PercentageValidator : DoubleRangeValidator(0.0, 100.0)

Constructors

Link copied to clipboard
constructor(min: Double, max: Double)

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.