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

coerceAtLeast

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

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

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

This is simply a convenience function.

See Also

kotlin.ranges.coerceAtLeast


fun <T : Comparable<T>> T.coerceAtLeast(minimumValue: Field<T>): Field<T>

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

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

This is simply a convenience function.

See Also

kotlin.ranges.coerceAtLeast