Struct jni::objects::JList[][src]

pub struct JList<'a> { /* fields omitted */ }

Wrapper for JObjects that implement java/util/Map. Provides methods to get and set entries and a way to iterate over key/value pairs.

Looks up the class and method ids on creation rather than for every method call.

Methods

impl<'a> JList<'a>
[src]

Create a map from the environment and an object. This looks up the necessary class and method ids to call all of the methods on it so that exra work doesn't need to be done on every method call.

Look up the value for a key. Returns Some if it's found and None if a null pointer would be returned.

Append an element to the list

Insert an element at a specific index

Remove an element from the list by index

Get the size of the list

Pop the last element from the list

Note that this calls size() to determine the last index.

Get key/value iterator for the map. This is done by getting the EntrySet from java and iterating over it.

Methods from Deref<Target = JObject<'a>>

Trait Implementations

impl<'a> Deref for JList<'a>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a> From<JList<'a>> for JObject<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> !Send for JList<'a>

impl<'a> !Sync for JList<'a>