[]Struct jni_android_sys::java::util::Properties

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

public class Properties

Required feature: "java-util-Properties"

Methods

impl Properties

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

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

Properties

Required features: "java-util-Properties"

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

setProperty

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

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

load

Required features: "java-io-Reader"

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

load

Required features: "java-io-InputStream"

pub fn save<'env>(
    &'env self,
    arg0: impl Into<Option<&'env OutputStream>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

save

Required features: "java-io-OutputStream", "java-lang-String"

pub fn store_Writer_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Writer>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

store

Required features: "java-io-Writer", "java-lang-String"

pub fn store_OutputStream_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env OutputStream>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

store

Required features: "java-io-OutputStream", "java-lang-String"

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

loadFromXML

Required features: "java-io-InputStream"

pub fn storeToXML_OutputStream_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env OutputStream>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

storeToXML

Required features: "java-io-OutputStream", "java-lang-String"

pub fn storeToXML_OutputStream_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env OutputStream>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

storeToXML

Required features: "java-io-OutputStream", "java-lang-String"

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

getProperty

Required features: "java-lang-String"

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

getProperty

Required features: "java-lang-String"

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

propertyNames

Required features: "java-util-Enumeration"

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

stringPropertyNames

Required features: "java-util-Set"

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

list

Required features: "java-io-PrintStream"

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

list

Required features: "java-io-PrintWriter"

Methods from Deref<Target = Hashtable>

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

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

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

keys

Required features: "java-util-Enumeration"

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

elements

Required features: "java-util-Enumeration"

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

contains

Required features: "java-lang-Object"

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

containsValue

Required features: "java-lang-Object"

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

containsKey

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

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

putAll

Required features: "java-util-Map"

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

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

clone

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

keySet

Required features: "java-util-Set"

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

entrySet

Required features: "java-util-Set"

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

values

Required features: "java-util-Collection"

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

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

getOrDefault

Required features: "java-lang-Object"

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

forEach

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

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

replaceAll

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

pub fn putIfAbsent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[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, Local<'env, Throwable>>
[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, Local<'env, Throwable>>
[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>>, Local<'env, Throwable>>
[src]

replace

Required features: "java-lang-Object"

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

computeIfAbsent

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

pub fn computeIfPresent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[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>>, Local<'env, Throwable>>
[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>>, Local<'env, Throwable>>
[src]

merge

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

Trait Implementations

impl AsJValue for Properties

impl AsValidJObjectAndEnv for Properties

impl Deref for Properties

type Target = Hashtable

The resulting type after dereferencing.

impl JniType for Properties

Auto Trait Implementations

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.