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

Extensions for kotlin.Long

and

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

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

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

downTo

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

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

minus

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

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

or

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

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

plus

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

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

rangeTo

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

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

rem

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

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

shl

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

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

shr

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

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

times

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

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

toBigDecimal

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

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

until

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

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

ushr

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

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

xor

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

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