LongRangeValidator

Base for Long range validators: the value must be in range.

object EpochMillisValidator : LongRangeValidator(0..4_102_444_800_000) // until year 2100

Constructors

Link copied to clipboard
constructor(range: LongRange)

Properties

Link copied to clipboard

Functions

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

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