[]Struct jni_android_sys::java::lang::Integer

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

public final class Integer

Required feature: java-lang-Integer

Methods

impl Integer

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

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

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

toUnsignedString

Required features: "java-lang-String"

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

toHexString

Required features: "java-lang-String"

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

toOctalString

Required features: "java-lang-String"

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

toBinaryString

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

toUnsignedString

Required features: "java-lang-String"

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

parseInt

Required features: "java-lang-String"

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

parseInt

Required features: "java-lang-String"

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

parseUnsignedInt

Required features: "java-lang-String"

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

parseUnsignedInt

Required features: "java-lang-String"

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

valueOf

Required features: "java-lang-Integer", "java-lang-String"

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

valueOf

Required features: "java-lang-Integer", "java-lang-String"

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

valueOf

Required features: "java-lang-Integer"

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

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

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 to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

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

pub fn hash_code_int<'env>(__jni_env: &'env Env, arg0: i32) -> 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 get_integer_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Integer>>>
[src]

getInteger

Required features: "java-lang-Integer", "java-lang-String"

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

getInteger

Required features: "java-lang-Integer", "java-lang-String"

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

getInteger

Required features: "java-lang-Integer", "java-lang-String"

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

decode

Required features: "java-lang-Integer", "java-lang-String"

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

compareTo

Required features: "java-lang-Integer"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub const BYTES: i32[src]

public static final BYTES

pub const MAX_VALUE: i32[src]

public static final MAX_VALUE

pub const MIN_VALUE: i32[src]

public static final MIN_VALUE

pub const SIZE: i32[src]

public static final SIZE

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 Integer

impl Deref for Integer

type Target = Number

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Integer

impl AsJValue for Integer

Auto Trait Implementations

impl !Sync for Integer

impl Unpin for Integer

impl !Send for Integer

impl UnwindSafe for Integer

impl RefUnwindSafe for Integer

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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