Struct ejni::List

source · []
pub struct List<'a> {
    pub inner: Object<'a>,
    pub class: Class<'a>,
    /* private fields */
}
Expand description

Wrapper around java.util.List

Fields

inner: Object<'a>

The list itself

class: Class<'a>

The type contained in the List

Implementations

Create a List abstraction from it’s raw components. The caller must guarantee that object implements java.util.List and that class is the correct Class

Create a new java.util.ArrayList

Appends the specified element to the end of this list (optional operation).

Inserts the specified element at the specified position in this list (optional operation).

Removes all of the elements from this list (optional operation).

Returns true if this list contains the specified element.

Returns the element at the specified position in this list.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

Returns true if this list contains no elements.

Removes the first occurrence of the specified element from this list, if it is present (optional operation).

Removes the element at the specified position in this list (optional operation).

Replaces the element at the specified position in this list with the specified element (optional operation).

Returns the number of elements in this list.

Returns a view of the portion of this list between the specified from index, inclusive, and to index, exclusive.

Returns an iterator over the elements in this list in proper sequence.

Trait Implementations

Executes the destructor for this type. Read more

Converts to this type from the input type.

Converts this type into the (usually inferred) input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Look up the concrete type from the JVM.

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.