[]Struct jni_android_sys::java::math::BigInteger

#[repr(transparent)]
pub struct BigInteger(_);

public class BigInteger

Required feature: "java-math-BigInteger"

Methods

impl BigInteger

pub fn new_int_Random<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

BigInteger

Required features: "java-util-Random"

pub fn new_int_int_Random<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Random>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

BigInteger

Required features: "java-util-Random"

pub fn new_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

BigInteger

Required features: "java-lang-String"

pub fn new_String_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

BigInteger

Required features: "java-lang-String"

pub fn new_int_byte_array<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

pub fn new_byte_array<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, BigInteger>, Local<'env, Throwable>>
[src]

pub fn valueOf<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

valueOf

Required features: "java-math-BigInteger"

pub fn toByteArray<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

pub fn abs<'env>(
    &'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

abs

Required features: "java-math-BigInteger"

pub fn negate<'env>(
    &'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

negate

Required features: "java-math-BigInteger"

pub fn add<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

add

Required features: "java-math-BigInteger"

pub fn subtract<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

subtract

Required features: "java-math-BigInteger"

pub fn signum<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn shiftRight<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

shiftRight

Required features: "java-math-BigInteger"

pub fn shiftLeft<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

shiftLeft

Required features: "java-math-BigInteger"

pub fn bitLength<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn testBit<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn setBit<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

setBit

Required features: "java-math-BigInteger"

pub fn clearBit<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

clearBit

Required features: "java-math-BigInteger"

pub fn flipBit<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

flipBit

Required features: "java-math-BigInteger"

pub fn getLowestSetBit<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn bitCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn not<'env>(
    &'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

not

Required features: "java-math-BigInteger"

pub fn and<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

and

Required features: "java-math-BigInteger"

pub fn or<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

or

Required features: "java-math-BigInteger"

pub fn xor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

xor

Required features: "java-math-BigInteger"

pub fn andNot<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

andNot

Required features: "java-math-BigInteger"

pub fn intValue<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn longValue<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn floatValue<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn doubleValue<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>[src]

pub fn compareTo_BigInteger<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<i32, Local<'env, Throwable>>
[src]

compareTo

Required features: "java-math-BigInteger"

pub fn min<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

min

Required features: "java-math-BigInteger"

pub fn max<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

max

Required features: "java-math-BigInteger"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn toString_int<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn gcd<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

gcd

Required features: "java-math-BigInteger"

pub fn multiply<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

multiply

Required features: "java-math-BigInteger"

pub fn pow<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

pow

Required features: "java-math-BigInteger"

pub fn divideAndRemainder<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, ObjectArray<BigInteger, Throwable>>>, Local<'env, Throwable>>
[src]

divideAndRemainder

Required features: "java-math-BigInteger"

pub fn divide<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

divide

Required features: "java-math-BigInteger"

pub fn remainder<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

remainder

Required features: "java-math-BigInteger"

pub fn modInverse<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

modInverse

Required features: "java-math-BigInteger"

pub fn modPow<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>,
    arg1: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

modPow

Required features: "java-math-BigInteger"

pub fn mod<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigInteger>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

mod

Required features: "java-math-BigInteger"

pub fn isProbablePrime<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn nextProbablePrime<'env>(
    &'env self
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

nextProbablePrime

Required features: "java-math-BigInteger"

pub fn probablePrime<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: impl Into<Option<&'env Random>>
) -> Result<Option<Local<'env, BigInteger>>, Local<'env, Throwable>>
[src]

probablePrime

Required features: "java-math-BigInteger", "java-util-Random"

pub fn ONE<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>[src]

get public static final ONE

Required feature: "java-math-BigInteger"

pub fn TEN<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>[src]

get public static final TEN

Required feature: "java-math-BigInteger"

pub fn ZERO<'env>(env: &'env Env) -> Option<Local<'env, BigInteger>>[src]

get public static final ZERO

Required feature: "java-math-BigInteger"

Methods from Deref<Target = Number>

pub fn intValue<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn longValue<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn floatValue<'env>(&'env self) -> Result<f32, Local<'env, Throwable>>[src]

pub fn doubleValue<'env>(&'env self) -> Result<f64, Local<'env, Throwable>>[src]

pub fn byteValue<'env>(&'env self) -> Result<i8, Local<'env, Throwable>>[src]

pub fn shortValue<'env>(&'env self) -> Result<i16, Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for BigInteger

impl AsRef<Comparable> for BigInteger

impl AsRef<Serializable> for BigInteger

impl AsValidJObjectAndEnv for BigInteger

impl Deref for BigInteger

type Target = Number

The resulting type after dereferencing.

impl JniType for BigInteger

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.