[]Struct jni_android_sys::org::json::JSONArray

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

public class JSONArray

Required feature: "org-json-JSONArray"

Methods

impl JSONArray

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

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

JSONArray

Required features: "java-util-Collection"

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

JSONArray

Required features: "org-json-JSONTokener"

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

JSONArray

Required features: "java-lang-String"

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

JSONArray

Required features: "java-lang-Object"

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

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

put

Required features: "org-json-JSONArray"

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

put

Required features: "org-json-JSONArray"

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

put

Required features: "org-json-JSONArray"

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

put

Required features: "org-json-JSONArray"

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

put

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

pub fn put_int_boolean<'env>(
    &'env self,
    arg0: i32,
    arg1: bool
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]

put

Required features: "org-json-JSONArray"

pub fn put_int_double<'env>(
    &'env self,
    arg0: i32,
    arg1: f64
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]

put

Required features: "org-json-JSONArray"

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

put

Required features: "org-json-JSONArray"

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

put

Required features: "org-json-JSONArray"

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

put

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

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

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

get

Required features: "java-lang-Object"

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

opt

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

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

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

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

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

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

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

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

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

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

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

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

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

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

getString

Required features: "java-lang-String"

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

optString

Required features: "java-lang-String"

pub fn optString_int_String<'env>(
    &'env self,
    arg0: i32,
    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: i32
) -> Result<Option<Local<'env, JSONArray>>, Local<'env, Throwable>>
[src]

getJSONArray

Required features: "org-json-JSONArray"

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

optJSONArray

Required features: "org-json-JSONArray"

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

getJSONObject

Required features: "org-json-JSONObject"

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

optJSONObject

Required features: "org-json-JSONObject"

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

toJSONObject

Required features: "org-json-JSONArray", "org-json-JSONObject"

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

join

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 toString_int<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

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]

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 JSONArray

impl AsValidJObjectAndEnv for JSONArray

impl Deref for JSONArray

type Target = Object

The resulting type after dereferencing.

impl JniType for JSONArray

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.