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

coerceAtLeast

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

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

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: Attribute<T>): Attribute<T>

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

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