Clamp

annotation class Clamp(val min: Double, val max: Double)

Clamps a numeric configuration value to the inclusive range from min to max.

Unlike validation annotations, this annotation normalizes an out-of-range value instead of rejecting the configuration.

Properties

Link copied to clipboard
val max: Double
Link copied to clipboard
val min: Double