Documentation / dataflow / com.femastudios.dataflow.extensions / kotlin.Short
Go to reference

Extensions for kotlin.Short

coerceAtLeast

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

fun Short.coerceAtLeast(minimumValue: Field<Short>): Field<Short>

coerceAtMost

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

fun Short.coerceAtMost(maximumValue: Field<Short>): Field<Short>

coerceIn

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

fun Short.coerceIn(minimumValue: Field<Short>, maximumValue: Field<Short>): Field<Short>
fun Short.coerceIn(minimumValue: Field<Short>, maximumValue: Short): Field<Short>
fun Short.coerceIn(minimumValue: Short, maximumValue: Field<Short>): Field<Short>

compareTo

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

fun Short.compareTo(other: Field<Byte>): Field<Int>
fun Short.compareTo(other: Field<Double>): Field<Int>
fun Short.compareTo(other: Field<Float>): Field<Int>
fun Short.compareTo(other: Field<Int>): Field<Int>
fun Short.compareTo(other: Field<Long>): Field<Int>
fun Short.compareTo(other: Field<Short>): Field<Int>

div

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

operator fun Short.div(other: Field<Byte>): Field<Int>
operator fun Short.div(other: Field<Double>): Field<Double>
operator fun Short.div(other: Field<Float>): Field<Float>
operator fun Short.div(other: Field<Int>): Field<Int>
operator fun Short.div(other: Field<Long>): Field<Long>
operator fun Short.div(other: Field<Short>): Field<Int>

downTo

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

infix fun Short.downTo(to: Field<Byte>): Field<IntProgression>
infix fun Short.downTo(to: Field<Int>): Field<IntProgression>
infix fun Short.downTo(to: Field<Long>): Field<LongProgression>
infix fun Short.downTo(to: Field<Short>): Field<IntProgression>

minus

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

operator fun Short.minus(other: Field<Byte>): Field<Int>
operator fun Short.minus(other: Field<Double>): Field<Double>
operator fun Short.minus(other: Field<Float>): Field<Float>
operator fun Short.minus(other: Field<Int>): Field<Int>
operator fun Short.minus(other: Field<Long>): Field<Long>
operator fun Short.minus(other: Field<Short>): Field<Int>

plus

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

operator fun Short.plus(other: Field<Byte>): Field<Int>
operator fun Short.plus(other: Field<Double>): Field<Double>
operator fun Short.plus(other: Field<Float>): Field<Float>
operator fun Short.plus(other: Field<Int>): Field<Int>
operator fun Short.plus(other: Field<Long>): Field<Long>
operator fun Short.plus(other: Field<Short>): Field<Int>

rangeTo

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

operator fun Short.rangeTo(other: Field<Byte>): Field<IntRange>
operator fun Short.rangeTo(other: Field<Int>): Field<IntRange>
operator fun Short.rangeTo(other: Field<Long>): Field<LongRange>
operator fun Short.rangeTo(other: Field<Short>): Field<IntRange>

rem

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

operator fun Short.rem(other: Field<Byte>): Field<Int>
operator fun Short.rem(other: Field<Double>): Field<Double>
operator fun Short.rem(other: Field<Float>): Field<Float>
operator fun Short.rem(other: Field<Int>): Field<Int>
operator fun Short.rem(other: Field<Long>): Field<Long>
operator fun Short.rem(other: Field<Short>): Field<Int>

times

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

operator fun Short.times(other: Field<Byte>): Field<Int>
operator fun Short.times(other: Field<Double>): Field<Double>
operator fun Short.times(other: Field<Float>): Field<Float>
operator fun Short.times(other: Field<Int>): Field<Int>
operator fun Short.times(other: Field<Long>): Field<Long>
operator fun Short.times(other: Field<Short>): Field<Int>

until

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

infix fun Short.until(to: Field<Byte>): Field<IntRange>
infix fun Short.until(to: Field<Int>): Field<IntRange>
infix fun Short.until(to: Field<Long>): Field<LongRange>
infix fun Short.until(to: Field<Short>): Field<IntRange>