[]Struct jni_android_sys::java::lang::Boolean

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

public final class Boolean

Required feature: "java-lang-Boolean"

Methods

impl Boolean

pub fn new_boolean<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<Local<'env, Boolean>, Local<'env, Throwable>>
[src]

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

Boolean

Required features: "java-lang-String"

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

parseBoolean

Required features: "java-lang-String"

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

pub fn valueOf_boolean<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> Result<Option<Local<'env, Boolean>>, Local<'env, Throwable>>
[src]

valueOf

Required features: "java-lang-Boolean"

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

valueOf

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

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

toString

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

pub fn hashCode_boolean<'env>(
    __jni_env: &'env Env,
    arg0: bool
) -> 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 getBoolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

getBoolean

Required features: "java-lang-String"

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

compareTo

Required features: "java-lang-Boolean"

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

pub fn logicalAnd<'env>(
    __jni_env: &'env Env,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn logicalOr<'env>(
    __jni_env: &'env Env,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn logicalXor<'env>(
    __jni_env: &'env Env,
    arg0: bool,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

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

get public static final FALSE

Required feature: "java-lang-Boolean"

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

get public static final TRUE

Required feature: "java-lang-Boolean"

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

get public static final TYPE

Required feature: "java-lang-Class"

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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

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

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

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

Trait Implementations

impl AsJValue for Boolean

impl AsRef<Comparable> for Boolean

impl AsRef<Serializable> for Boolean

impl AsValidJObjectAndEnv for Boolean

impl Deref for Boolean

type Target = Object

The resulting type after dereferencing.

impl JniType for Boolean

Auto Trait Implementations

impl RefUnwindSafe for Boolean

impl !Send for Boolean

impl !Sync for Boolean

impl Unpin for Boolean

impl UnwindSafe for Boolean

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.