[]Struct jni_android_sys::java::util::prefs::Preferences

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

public class Preferences

Required feature: "java-util-prefs-Preferences"

Methods

impl Preferences

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

userNodeForPackage

Required features: "java-lang-Class", "java-util-prefs-Preferences"

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

systemNodeForPackage

Required features: "java-lang-Class", "java-util-prefs-Preferences"

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

userRoot

Required features: "java-util-prefs-Preferences"

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

systemRoot

Required features: "java-util-prefs-Preferences"

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

put

Required features: "java-lang-String"

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

get

Required features: "java-lang-String"

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

remove

Required features: "java-lang-String"

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

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

putInt

Required features: "java-lang-String"

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

getInt

Required features: "java-lang-String"

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

putLong

Required features: "java-lang-String"

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

getLong

Required features: "java-lang-String"

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

putBoolean

Required features: "java-lang-String"

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

getBoolean

Required features: "java-lang-String"

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

putFloat

Required features: "java-lang-String"

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

getFloat

Required features: "java-lang-String"

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

putDouble

Required features: "java-lang-String"

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

getDouble

Required features: "java-lang-String"

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

putByteArray

Required features: "java-lang-String"

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

getByteArray

Required features: "java-lang-String"

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

keys

Required features: "java-lang-String"

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

childrenNames

Required features: "java-lang-String"

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

parent

Required features: "java-util-prefs-Preferences"

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

node

Required features: "java-lang-String", "java-util-prefs-Preferences"

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

nodeExists

Required features: "java-lang-String"

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

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

name

Required features: "java-lang-String"

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

absolutePath

Required features: "java-lang-String"

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

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

toString

Required features: "java-lang-String"

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

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

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

addPreferenceChangeListener

Required features: "java-util-prefs-PreferenceChangeListener"

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

removePreferenceChangeListener

Required features: "java-util-prefs-PreferenceChangeListener"

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

addNodeChangeListener

Required features: "java-util-prefs-NodeChangeListener"

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

removeNodeChangeListener

Required features: "java-util-prefs-NodeChangeListener"

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

exportNode

Required features: "java-io-OutputStream"

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

exportSubtree

Required features: "java-io-OutputStream"

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

importPreferences

Required features: "java-io-InputStream"

pub const MAX_KEY_LENGTH: i32[src]

public static final MAX_KEY_LENGTH

pub const MAX_NAME_LENGTH: i32[src]

public static final MAX_NAME_LENGTH

pub const MAX_VALUE_LENGTH: i32[src]

public static final MAX_VALUE_LENGTH

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 Preferences

impl AsValidJObjectAndEnv for Preferences

impl Deref for Preferences

type Target = Object

The resulting type after dereferencing.

impl JniType for Preferences

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.