[]Struct jni_android_sys::org::json::JSONObject

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

public class JSONObject

Required feature: "org-json-JSONObject"

Methods

impl JSONObject

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

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

JSONObject

Required features: "java-util-Map"

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

JSONObject

Required features: "org-json-JSONTokener"

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

JSONObject

Required features: "java-lang-String"

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

JSONObject

Required features: "java-lang-String", "org-json-JSONObject"

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

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

put

Required features: "java-lang-String", "org-json-JSONObject"

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

put

Required features: "java-lang-String", "org-json-JSONObject"

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

put

Required features: "java-lang-String", "org-json-JSONObject"

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

put

Required features: "java-lang-String", "org-json-JSONObject"

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

put

Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"

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

putOpt

Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"

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

accumulate

Required features: "java-lang-Object", "java-lang-String", "org-json-JSONObject"

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

remove

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

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

isNull

Required features: "java-lang-String"

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

has

Required features: "java-lang-String"

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

get

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

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

opt

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

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

getBoolean

Required features: "java-lang-String"

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

optBoolean

Required features: "java-lang-String"

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

optBoolean

Required features: "java-lang-String"

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

getDouble

Required features: "java-lang-String"

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

optDouble

Required features: "java-lang-String"

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

optDouble

Required features: "java-lang-String"

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

getInt

Required features: "java-lang-String"

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

optInt

Required features: "java-lang-String"

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

optInt

Required features: "java-lang-String"

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

getLong

Required features: "java-lang-String"

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

optLong

Required features: "java-lang-String"

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

optLong

Required features: "java-lang-String"

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

getString

Required features: "java-lang-String"

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

optString

Required features: "java-lang-String"

pub fn optString_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]

optString

Required features: "java-lang-String"

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

getJSONArray

Required features: "java-lang-String", "org-json-JSONArray"

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

optJSONArray

Required features: "java-lang-String", "org-json-JSONArray"

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

getJSONObject

Required features: "java-lang-String", "org-json-JSONObject"

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

optJSONObject

Required features: "java-lang-String", "org-json-JSONObject"

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

toJSONArray

Required features: "org-json-JSONArray"

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

keys

Required features: "java-util-Iterator"

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

names

Required features: "org-json-JSONArray"

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

toString

Required features: "java-lang-String"

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

toString

Required features: "java-lang-String"

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

numberToString

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

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

quote

Required features: "java-lang-String"

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

wrap

Required features: "java-lang-Object"

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

get public static final NULL

Required feature: "java-lang-Object"

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 JSONObject

impl AsValidJObjectAndEnv for JSONObject

impl Deref for JSONObject

type Target = Object

The resulting type after dereferencing.

impl JniType for JSONObject

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.