Struct toad_jni::java::util::ArrayList

source ·
pub struct ArrayList<T>(_, _);
Expand description

java/util/ArrayList

Implementations§

source§

impl<T> ArrayList<T>where T: Object,

source

pub fn get(&self, e: &mut Env<'_>, ix: i32) -> T

java.util.ArrayList.get(int)

source

pub fn remove(&self, e: &mut Env<'_>, ix: i32)

java.util.ArrayList.remove(int)

source

pub fn clear(&self, e: &mut Env<'_>)

java.util.ArrayList.clear()

source

pub fn append(&self, e: &mut Env<'_>, val: T)

java.util.ArrayList.add(Object)

source

pub fn insert(&self, e: &mut Env<'_>, ix: i32, val: T)

java.util.ArrayList.add(int, Object)

source

pub fn size(&self, e: &mut Env<'_>) -> i32

java.util.ArrayList.size()

source

pub fn new(e: &mut Env<'_>) -> Self

Create a new ArrayList

Trait Implementations§

source§

impl<T> Class for ArrayList<T>where T: Object,

source§

const PATH: &'static str = "java/util/ArrayList"

The fully qualified java class path (slash-separated) Read more
source§

impl<T> Default for ArrayList<T>where T: Object,

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T> Extend<T> for ArrayList<T>where T: Object,

source§

fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl<T> Filled<T> for ArrayList<T>where T: Object,

source§

fn filled_using<F>(_: F) -> Option<Self>where F: Fn() -> T,

source§

impl<T> FromIterator<T> for ArrayList<T>where T: Object,

source§

fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl<T> IntoIterator for ArrayList<T>where T: Object,

§

type Item = T

The type of the elements being iterated over.
§

type IntoIter = ArrayListIter<T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl<T> Len for ArrayList<T>where T: Object,

source§

const CAPACITY: Option<usize> = None

The maximum number of elements that this data structure can acommodate.
source§

fn len(&self) -> usize

Get the runtime size (in bytes) of a struct Read more
source§

fn is_full(&self) -> bool

Is there no room left in this collection? Read more
source§

fn is_empty(&self) -> bool

Check if the runtime size is zero Read more
source§

impl<T> Object for ArrayList<T>where T: Object,

source§

fn upcast(_e: &mut Env<'_>, jobj: Object) -> Self

Try to interpret an object as Self
source§

fn downcast(self, _e: &mut Env<'_>) -> Object

Create an object reference from self
source§

fn downcast_ref(&self, e: &mut Env<'_>) -> Object

Create an object reference from &self
source§

fn upcast_value_ref<'e>(e: &mut Env<'e>, jv: JValue<'e, '_>) -> Selfwhere Self: Sized,

Try to interpret a JValue as Self
source§

fn upcast_value<'e>(e: &mut Env<'e>, jv: JValueOwned<'e>) -> Selfwhere Self: Sized,

Try to interpret a JValueOwned as Self
source§

fn downcast_value<'e>(self, e: &mut Env<'e>) -> JValueOwned<'e>where Self: Sized,

Create a JValueOwned from self
source§

fn yield_to_java(&self, e: &mut Env<'_>) -> jobject

Use this to yield ownership of a java::lang::Object to the JVM, for example when returning a jobject from a native function.
source§

impl<T> Reserve for ArrayList<T>where T: Object,

source§

fn reserve(_: usize) -> Self

Create an instance of the collection with a given capacity. Read more
source§

impl<T> Trunc for ArrayList<T>where T: Object,

source§

fn trunc(&mut self, desired_len: usize)

source§

fn clear(&mut self)

Erase all elements in the collection

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for ArrayList<T>where T: RefUnwindSafe,

§

impl<T> Send for ArrayList<T>where T: Send,

§

impl<T> Sync for ArrayList<T>where T: Sync,

§

impl<T> Unpin for ArrayList<T>where T: Unpin,

§

impl<T> UnwindSafe for ArrayList<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<F, A, TF, T> Sequence<F, A, TF> for T

source§

fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>, Ap: HKT1, <Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>, <Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>, <Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>, F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Type for Twhere T: Class,

source§

const SIG: Signature =

The signature for this type
source§

fn jni() -> JavaType

Get the jni rep of this type
source§

fn is_type_of(e: &mut Env<'_>, o: &JObject<'_>) -> bool

Determines whether an object is an instance of this type
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V