Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Short / coerceAtMost
Go to reference

coerceAtMost

fun Short.coerceAtMost(maximumValue: Attribute<Short>): Attribute<Short>

Same as coerceAtMost, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling coerceAtMost in the transformation function.

This is simply a convenience function.

See Also

kotlin.ranges.coerceAtMost