Struct jni::objects::JList [−][src]
pub struct JList<'a: 'b, 'b> { /* fields omitted */ }
Expand description
Wrapper for JObjects that implement java/util/List
. Provides methods to get,
add, and remove elements.
Looks up the class and method ids on creation rather than for every method call.
Implementations
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.
Insert an element at a specific index
Remove an element from the list by index
Pop the last element from the list
Note that this calls size()
to determine the last index.