[]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>>
[src]

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>>
[src]

Required features: "java-util-Random"

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

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>>
[src]

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>>
[src]

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

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

valueOf

Required features: "java-math-BigInteger"

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

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

abs

Required features: "java-math-BigInteger"

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

negate

Required features: "java-math-BigInteger"

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

add

Required features: "java-math-BigInteger"

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

subtract

Required features: "java-math-BigInteger"

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

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

shiftRight

Required features: "java-math-BigInteger"

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

shiftLeft

Required features: "java-math-BigInteger"

pub fn bit_length<'env>(&'env self) -> Result<i32>[src]

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

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

setBit

Required features: "java-math-BigInteger"

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

clearBit

Required features: "java-math-BigInteger"

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

flipBit

Required features: "java-math-BigInteger"

pub fn get_lowest_set_bit<'env>(&'env self) -> Result<i32>[src]

pub fn bit_count<'env>(&'env self) -> Result<i32>[src]

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

not

Required features: "java-math-BigInteger"

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

and

Required features: "java-math-BigInteger"

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

or

Required features: "java-math-BigInteger"

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

xor

Required features: "java-math-BigInteger"

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

andNot

Required features: "java-math-BigInteger"

pub fn int_value<'env>(&'env self) -> Result<i32>[src]

pub fn long_value<'env>(&'env self) -> Result<i64>[src]

pub fn float_value<'env>(&'env self) -> Result<f32>[src]

pub fn double_value<'env>(&'env self) -> Result<f64>[src]

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

compareTo

Required features: "java-math-BigInteger"

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

min

Required features: "java-math-BigInteger"

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

max

Required features: "java-math-BigInteger"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

gcd

Required features: "java-math-BigInteger"

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

multiply

Required features: "java-math-BigInteger"

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

pow

Required features: "java-math-BigInteger"

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

divide

Required features: "java-math-BigInteger"

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

remainder

Required features: "java-math-BigInteger"

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

modInverse

Required features: "java-math-BigInteger"

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

modPow

Required features: "java-math-BigInteger"

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

mod

Required features: "java-math-BigInteger"

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

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

nextProbablePrime

Required features: "java-math-BigInteger"

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

probablePrime

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

Methods from Deref<Target = Number>

pub fn int_value<'env>(&'env self) -> Result<i32>[src]

pub fn long_value<'env>(&'env self) -> Result<i64>[src]

pub fn float_value<'env>(&'env self) -> Result<f32>[src]

pub fn double_value<'env>(&'env self) -> Result<f64>[src]

pub fn byte_value<'env>(&'env self) -> Result<i8>[src]

pub fn short_value<'env>(&'env self) -> Result<i16>[src]

Trait Implementations

impl AsRef<Comparable> for BigInteger

impl AsRef<Serializable> for BigInteger

impl Deref for BigInteger

type Target = Number

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for BigInteger

impl AsJValue for BigInteger

Auto Trait Implementations

Blanket Implementations

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.

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

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

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