Documentation / dataflow / com.femastudios.dataflow.extensions / java.math.BigInteger
Go to reference

Extensions for java.math.BigInteger

and

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

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

andNot

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

fun BigInteger.andNot(val: Field<BigInteger>): Field<BigInteger>

clearBit

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

fun BigInteger.clearBit(n: Field<Int>): Field<BigInteger>

div

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

operator fun BigInteger.div(other: Field<BigInteger>): Field<BigInteger>

flipBit

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

fun BigInteger.flipBit(n: Field<Int>): Field<BigInteger>

gcd

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

fun BigInteger.gcd(val: Field<BigInteger>): Field<BigInteger>

isProbablePrime

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

fun BigInteger.isProbablePrime(certainty: Field<Int>): Field<Boolean>

minus

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

operator fun BigInteger.minus(other: Field<BigInteger>): Field<BigInteger>

modInverse

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

fun BigInteger.modInverse(m: Field<BigInteger>): Field<BigInteger>

modPow

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

fun BigInteger.modPow(exponent: Field<BigInteger>, m: Field<BigInteger>): Field<BigInteger>
fun BigInteger.modPow(exponent: Field<BigInteger>, m: BigInteger): Field<BigInteger>
fun BigInteger.modPow(exponent: BigInteger, m: Field<BigInteger>): Field<BigInteger>

or

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

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

plus

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

operator fun BigInteger.plus(other: Field<BigInteger>): Field<BigInteger>

pow

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

fun BigInteger.pow(exponent: Field<Int>): Field<BigInteger>

rem

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

operator fun BigInteger.rem(other: Field<BigInteger>): Field<BigInteger>

setBit

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

fun BigInteger.setBit(n: Field<Int>): Field<BigInteger>

shl

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

infix fun BigInteger.shl(n: Field<Int>): Field<BigInteger>

shr

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

infix fun BigInteger.shr(n: Field<Int>): Field<BigInteger>

testBit

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

fun BigInteger.testBit(n: Field<Int>): Field<Boolean>

times

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

operator fun BigInteger.times(other: Field<BigInteger>): Field<BigInteger>

toBigDecimal

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

fun BigInteger.toBigDecimal(scale: Field<Int>, mathContext: Field<MathContext> = com.femastudios.dataflow.util.fieldOf(java.math.MathContext.UNLIMITED)): Field<BigDecimal>
fun BigInteger.toBigDecimal(scale: Field<Int>, mathContext: MathContext = java.math.MathContext.UNLIMITED): Field<BigDecimal>
fun BigInteger.toBigDecimal(scale: Int = 0, mathContext: Field<MathContext>): Field<BigDecimal>

toString

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

fun BigInteger.toString(radix: Field<Int>): Field<String>

xor

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

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