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

Extensions for kotlin.Int

and

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

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

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

downTo

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

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

minus

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

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

or

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

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

plus

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

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

rangeTo

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

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

rem

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

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

shl

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

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

shr

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

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

times

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

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

toBigDecimal

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

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

until

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

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

ushr

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

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

xor

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

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