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

Extensions for kotlin.Long

and

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

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

coerceAtLeast

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

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

coerceAtMost

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

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

coerceIn

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

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

compareTo

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

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

div

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

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

downTo

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

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

minus

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

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

or

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

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

plus

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

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

rangeTo

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

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

rem

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

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

shl

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

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

shr

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

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

times

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

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

toBigDecimal

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

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

until

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

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

ushr

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

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

xor

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

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