Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Short / coerceIn
Go to reference
Go to reference
coerceIn
fun Short.coerceIn(minimumValue: Attribute<Short>, maximumValue: Attribute<Short>): Attribute<Short>
fun Short.coerceIn(minimumValue: Attribute<Short>, maximumValue: Short): Attribute<Short>
fun Short.coerceIn(minimumValue: Short, maximumValue: Attribute<Short>): Attribute<Short>
Same as coerceIn, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling coerceIn in the transformation function.
This is simply a convenience function.
See Also