Documentation / dataflow / com.femastudios.dataflow.extensions / coerceAtMost
Go to reference

coerceAtMost

fun Field<Byte>.coerceAtMost(maximumValue: Field<Byte>): Field<Byte>
fun Field<Byte>.coerceAtMost(maximumValue: Byte): Field<Byte>
fun <T : Comparable<T>> Field<T>.coerceAtMost(maximumValue: T): Field<T>
fun <T : Comparable<T>> Field<T>.coerceAtMost(maximumValue: Field<T>): Field<T>
fun Field<Double>.coerceAtMost(maximumValue: Field<Double>): Field<Double>
fun Field<Double>.coerceAtMost(maximumValue: Double): Field<Double>
fun Field<Float>.coerceAtMost(maximumValue: Field<Float>): Field<Float>
fun Field<Float>.coerceAtMost(maximumValue: Float): Field<Float>
fun Field<Int>.coerceAtMost(maximumValue: Field<Int>): Field<Int>
fun Field<Int>.coerceAtMost(maximumValue: Int): Field<Int>
fun Field<Long>.coerceAtMost(maximumValue: Field<Long>): Field<Long>
fun Field<Long>.coerceAtMost(maximumValue: Long): Field<Long>
fun Field<Short>.coerceAtMost(maximumValue: Field<Short>): Field<Short>
fun Field<Short>.coerceAtMost(maximumValue: Short): Field<Short>

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

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


fun <T : Comparable<T>> T.coerceAtMost(maximumValue: Field<T>): Field<T>

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

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