Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Byte / coerceIn
Go to reference
Go to reference
coerceIn
fun Byte.coerceIn(minimumValue: Attribute<Byte>, maximumValue: Attribute<Byte>): Attribute<Byte>
fun Byte.coerceIn(minimumValue: Attribute<Byte>, maximumValue: Byte): Attribute<Byte>
fun Byte.coerceIn(minimumValue: Byte, maximumValue: Attribute<Byte>): Attribute<Byte>
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