validate

open override fun validate(value: Int): String?

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