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

Extensions for kotlin.Int

and

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

infix fun Int.and(other: Field<Int>): Field<Int>

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

fun Int.coerceIn(minimumValue: Field<Int>, maximumValue: Field<Int>): Field<Int>
fun Int.coerceIn(minimumValue: Field<Int>, maximumValue: Int): Field<Int>
fun Int.coerceIn(minimumValue: Int, maximumValue: Field<Int>): Field<Int>
fun Int.coerceIn(range: Field<ClosedRange<Int>>): Field<Int>

compareTo

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

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

div

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

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

downTo

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

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

minus

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

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

or

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

infix fun Int.or(other: Field<Int>): Field<Int>

plus

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

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

rangeTo

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

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

rem

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

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

shl

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

infix fun Int.shl(bitCount: Field<Int>): Field<Int>

shr

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

infix fun Int.shr(bitCount: Field<Int>): Field<Int>

times

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

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

toBigDecimal

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

fun Int.toBigDecimal(mathContext: Field<MathContext>): Field<BigDecimal>

until

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

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

ushr

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

infix fun Int.ushr(bitCount: Field<Int>): Field<Int>

xor

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

infix fun Int.xor(other: Field<Int>): Field<Int>