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

coerceIn

fun Attribute<Byte>.coerceIn(minimumValue: Attribute<Byte>, maximumValue: Attribute<Byte>): Attribute<Byte>
fun Attribute<Byte>.coerceIn(minimumValue: Attribute<Byte>, maximumValue: Byte): Attribute<Byte>
fun Attribute<Byte>.coerceIn(minimumValue: Byte, maximumValue: Attribute<Byte>): Attribute<Byte>
fun Attribute<Byte>.coerceIn(minimumValue: Byte, maximumValue: Byte): Attribute<Byte>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(minimumValue: T?, maximumValue: T?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(minimumValue: T?, maximumValue: Attribute<T?>?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(minimumValue: Attribute<T?>?, maximumValue: T?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(minimumValue: Attribute<T?>?, maximumValue: Attribute<T?>?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(range: Attribute<ClosedRange<T>>): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> Attribute<T>.coerceIn(range: ClosedRange<T>): Attribute<T>
@JvmName("coerceInClosedFloatingPointRange") fun <T : Comparable<T>> Attribute<T>.coerceIn(range: Attribute<ClosedFloatingPointRange<T>>): Attribute<T>
@JvmName("coerceInClosedFloatingPointRange") fun <T : Comparable<T>> Attribute<T>.coerceIn(range: ClosedFloatingPointRange<T>): Attribute<T>
fun Attribute<Double>.coerceIn(minimumValue: Attribute<Double>, maximumValue: Attribute<Double>): Attribute<Double>
fun Attribute<Double>.coerceIn(minimumValue: Attribute<Double>, maximumValue: Double): Attribute<Double>
fun Attribute<Double>.coerceIn(minimumValue: Double, maximumValue: Attribute<Double>): Attribute<Double>
fun Attribute<Double>.coerceIn(minimumValue: Double, maximumValue: Double): Attribute<Double>
fun Attribute<Float>.coerceIn(minimumValue: Attribute<Float>, maximumValue: Attribute<Float>): Attribute<Float>
fun Attribute<Float>.coerceIn(minimumValue: Attribute<Float>, maximumValue: Float): Attribute<Float>
fun Attribute<Float>.coerceIn(minimumValue: Float, maximumValue: Attribute<Float>): Attribute<Float>
fun Attribute<Float>.coerceIn(minimumValue: Float, maximumValue: Float): Attribute<Float>
fun Attribute<Int>.coerceIn(minimumValue: Attribute<Int>, maximumValue: Attribute<Int>): Attribute<Int>
fun Attribute<Int>.coerceIn(minimumValue: Attribute<Int>, maximumValue: Int): Attribute<Int>
fun Attribute<Int>.coerceIn(minimumValue: Int, maximumValue: Attribute<Int>): Attribute<Int>
fun Attribute<Int>.coerceIn(minimumValue: Int, maximumValue: Int): Attribute<Int>
fun Attribute<Int>.coerceIn(range: Attribute<ClosedRange<Int>>): Attribute<Int>
fun Attribute<Int>.coerceIn(range: ClosedRange<Int>): Attribute<Int>
fun Attribute<Long>.coerceIn(minimumValue: Attribute<Long>, maximumValue: Attribute<Long>): Attribute<Long>
fun Attribute<Long>.coerceIn(minimumValue: Attribute<Long>, maximumValue: Long): Attribute<Long>
fun Attribute<Long>.coerceIn(minimumValue: Long, maximumValue: Attribute<Long>): Attribute<Long>
fun Attribute<Long>.coerceIn(minimumValue: Long, maximumValue: Long): Attribute<Long>
fun Attribute<Long>.coerceIn(range: Attribute<ClosedRange<Long>>): Attribute<Long>
fun Attribute<Long>.coerceIn(range: ClosedRange<Long>): Attribute<Long>
fun Attribute<Short>.coerceIn(minimumValue: Attribute<Short>, maximumValue: Attribute<Short>): Attribute<Short>
fun Attribute<Short>.coerceIn(minimumValue: Attribute<Short>, maximumValue: Short): Attribute<Short>
fun Attribute<Short>.coerceIn(minimumValue: Short, maximumValue: Attribute<Short>): Attribute<Short>
fun Attribute<Short>.coerceIn(minimumValue: Short, maximumValue: Short): Attribute<Short>

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

kotlin.ranges.coerceIn


@JvmName("coerceIn") fun <T : Comparable<T>> T.coerceIn(minimumValue: T?, maximumValue: Attribute<T?>?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> T.coerceIn(minimumValue: Attribute<T?>?, maximumValue: T?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> T.coerceIn(minimumValue: Attribute<T?>?, maximumValue: Attribute<T?>?): Attribute<T>
@JvmName("coerceIn") fun <T : Comparable<T>> T.coerceIn(range: Attribute<ClosedRange<T>>): Attribute<T>
@JvmName("coerceInClosedFloatingPointRange") fun <T : Comparable<T>> T.coerceIn(range: Attribute<ClosedFloatingPointRange<T>>): Attribute<T>

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

kotlin.ranges.coerceIn