update at 2022-02-25 10:33:51 by ehlxr
This commit is contained in:
parent
7ffd8ac5f2
commit
a5a597a032
@ -15,6 +15,11 @@ pub extern "system" fn Java_me_ehlxr_HelloWorld_getFiled(
|
|||||||
.l()
|
.l()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let jmap = env.get_map(map).unwrap();
|
let jmap = env.get_map(map).unwrap();
|
||||||
|
let v1 = jmap
|
||||||
|
.get(JObject::from(env.new_string("k1").unwrap()))
|
||||||
|
.unwrap()
|
||||||
|
.unwrap();
|
||||||
|
println!("get map key k1, value: {}", long_value(env, v1));
|
||||||
|
|
||||||
jmap.iter().unwrap().into_iter().for_each(|jmap_iter| {
|
jmap.iter().unwrap().into_iter().for_each(|jmap_iter| {
|
||||||
let key: JString = jmap_iter.0.into();
|
let key: JString = jmap_iter.0.into();
|
||||||
|
Loading…
Reference in New Issue
Block a user