[]Struct jni_android_sys::java::math::BigDecimal

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

public class BigDecimal

Required feature: java-math-BigDecimal

Methods

impl BigDecimal

pub fn new_char_array_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32
) -> Result<Local<'env, BigDecimal>>
[src]

pub fn new_char_array_int_int_math_context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: i32,
    arg2: i32,
    arg3: impl Into<Option<&'env MathContext>>
) -> Result<Local<'env, BigDecimal>>
[src]

Required features: "java-math-MathContext"

pub fn new_char_array<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharArray>>
) -> Result<Local<'env, BigDecimal>>
[src]

pub fn new_char_array_math_context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env CharArray>>,
    arg1: impl Into<Option<&'env MathContext>>
) -> Result<Local<'env, BigDecimal>>
[src]

Required features: "java-math-MathContext"

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

Required features: "java-lang-String"

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

Required features: "java-lang-String", "java-math-MathContext"

pub fn new_double<'env>(
    __jni_env: &'env Env,
    arg0: f64
) -> Result<Local<'env, BigDecimal>>
[src]

pub fn new_double_math_context<'env>(
    __jni_env: &'env Env,
    arg0: f64,
    arg1: impl Into<Option<&'env MathContext>>
) -> Result<Local<'env, BigDecimal>>
[src]

Required features: "java-math-MathContext"

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

Required features: "java-math-BigInteger"

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

Required features: "java-math-BigInteger", "java-math-MathContext"

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

Required features: "java-math-BigInteger"

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

Required features: "java-math-BigInteger", "java-math-MathContext"

pub fn new_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Local<'env, BigDecimal>>
[src]

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

Required features: "java-math-MathContext"

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

pub fn new_long_math_context<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: impl Into<Option<&'env MathContext>>
) -> Result<Local<'env, BigDecimal>>
[src]

Required features: "java-math-MathContext"

pub fn value_of_long_int<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: i32
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

valueOf

Required features: "java-math-BigDecimal"

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

valueOf

Required features: "java-math-BigDecimal"

pub fn value_of_double<'env>(
    __jni_env: &'env Env,
    arg0: f64
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

valueOf

Required features: "java-math-BigDecimal"

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

add

Required features: "java-math-BigDecimal"

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

add

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

subtract

Required features: "java-math-BigDecimal"

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

subtract

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

multiply

Required features: "java-math-BigDecimal"

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

multiply

Required features: "java-math-BigDecimal", "java-math-MathContext"

pub fn divide_big_decimal_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

divide

Required features: "java-math-BigDecimal"

pub fn divide_big_decimal_int_rounding_mode<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BigDecimal>>,
    arg1: i32,
    arg2: impl Into<Option<&'env RoundingMode>>
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

divide

Required features: "java-math-BigDecimal", "java-math-RoundingMode"

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

divide

Required features: "java-math-BigDecimal"

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

divide

Required features: "java-math-BigDecimal", "java-math-RoundingMode"

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

divide

Required features: "java-math-BigDecimal"

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

divide

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

divideToIntegralValue

Required features: "java-math-BigDecimal"

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

divideToIntegralValue

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

remainder

Required features: "java-math-BigDecimal"

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

remainder

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

pow

Required features: "java-math-BigDecimal"

pub fn pow_int_math_context<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env MathContext>>
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

pow

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

abs

Required features: "java-math-BigDecimal"

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

abs

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

negate

Required features: "java-math-BigDecimal"

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

negate

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

plus

Required features: "java-math-BigDecimal"

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

plus

Required features: "java-math-BigDecimal", "java-math-MathContext"

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

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

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

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

unscaledValue

Required features: "java-math-BigInteger"

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

round

Required features: "java-math-BigDecimal", "java-math-MathContext"

pub fn set_scale_int_rounding_mode<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env RoundingMode>>
) -> Result<Option<Local<'env, BigDecimal>>>
[src]

setScale

Required features: "java-math-BigDecimal", "java-math-RoundingMode"

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

setScale

Required features: "java-math-BigDecimal"

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

setScale

Required features: "java-math-BigDecimal"

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

movePointLeft

Required features: "java-math-BigDecimal"

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

movePointRight

Required features: "java-math-BigDecimal"

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

scaleByPowerOfTen

Required features: "java-math-BigDecimal"

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

stripTrailingZeros

Required features: "java-math-BigDecimal"

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

compareTo

Required features: "java-math-BigDecimal"

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

equals

Required features: "java-lang-Object"

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

min

Required features: "java-math-BigDecimal"

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

max

Required features: "java-math-BigDecimal"

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

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

toString

Required features: "java-lang-String"

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

toEngineeringString

Required features: "java-lang-String"

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

toPlainString

Required features: "java-lang-String"

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

toBigInteger

Required features: "java-math-BigInteger"

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

toBigIntegerExact

Required features: "java-math-BigInteger"

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

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

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

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

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

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

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

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

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

ulp

Required features: "java-math-BigDecimal"

pub const ROUND_CEILING: i32[src]

public static final ROUND_CEILING

pub const ROUND_DOWN: i32[src]

public static final ROUND_DOWN

pub const ROUND_FLOOR: i32[src]

public static final ROUND_FLOOR

pub const ROUND_HALF_DOWN: i32[src]

public static final ROUND_HALF_DOWN

pub const ROUND_HALF_EVEN: i32[src]

public static final ROUND_HALF_EVEN

pub const ROUND_HALF_UP: i32[src]

public static final ROUND_HALF_UP

pub const ROUND_UNNECESSARY: i32[src]

public static final ROUND_UNNECESSARY

pub const ROUND_UP: i32[src]

public static final ROUND_UP

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 BigDecimal

impl AsRef<Serializable> for BigDecimal

impl Deref for BigDecimal

type Target = Number

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for BigDecimal

impl AsJValue for BigDecimal

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]