[]Struct jni_android_sys::java::util::Hashtable

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

public class Hashtable

Required feature: java-util-Hashtable

Methods

impl Hashtable

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

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

pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, Hashtable>>[src]

pub fn new_map<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Map>>
) -> Result<Local<'env, Hashtable>>
[src]

Required features: "java-util-Map"

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

pub fn is_empty<'env>(&'env self) -> Result<bool>[src]

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

keys

Required features: "java-util-Enumeration"

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

elements

Required features: "java-util-Enumeration"

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

contains

Required features: "java-lang-Object"

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

containsValue

Required features: "java-lang-Object"

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

containsKey

Required features: "java-lang-Object"

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

get

Required features: "java-lang-Object"

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

put

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

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

putAll

Required features: "java-util-Map"

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

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

clone

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

keySet

Required features: "java-util-Set"

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

entrySet

Required features: "java-util-Set"

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

values

Required features: "java-util-Collection"

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

equals

Required features: "java-lang-Object"

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

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

getOrDefault

Required features: "java-lang-Object"

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

forEach

Required features: "java-util-function-BiConsumer"

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

replaceAll

Required features: "java-util-function-BiFunction"

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

putIfAbsent

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

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

replace

Required features: "java-lang-Object"

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

replace

Required features: "java-lang-Object"

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

computeIfAbsent

Required features: "java-lang-Object", "java-util-function-Function"

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

computeIfPresent

Required features: "java-lang-Object", "java-util-function-BiFunction"

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

compute

Required features: "java-lang-Object", "java-util-function-BiFunction"

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

merge

Required features: "java-lang-Object", "java-util-function-BiFunction"

Methods from Deref<Target = Dictionary>

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

pub fn is_empty<'env>(&'env self) -> Result<bool>[src]

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

keys

Required features: "java-util-Enumeration"

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

elements

Required features: "java-util-Enumeration"

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

get

Required features: "java-lang-Object"

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

put

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

Trait Implementations

impl AsRef<Map> for Hashtable

impl AsRef<Cloneable> for Hashtable

impl AsRef<Serializable> for Hashtable

impl Deref for Hashtable

type Target = Dictionary

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Hashtable

impl AsJValue for Hashtable

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]