sanitizeValue

abstract fun sanitizeValue(value: Double): Double

Ensures that the given value satisfies the constraints of this attribute type.

For example, with ranged attribute types, this will ensure that the value is between the minimum and maximum value.

Return

the sanitized result

Parameters

value

the value to sanitize