1 | static Method hashMap_findKey_method; |
2 | |
3 | static <A, B> A hashMap_findKey(HashMap<A, B> map, O key) ctex {
|
4 | if (hashMap_findKey_method == null) |
5 | hashMap_findKey_method = findMethodNamed(HashMap.class, "getNode"); |
6 | Map.Entry<A, B> entry = (Map.Entry) hashMap_findKey_method.invoke(map, hashMap_internalHash(key), key); |
7 | // java.util.Map.Entry<A, B> entry = (java.util.Map.Entry) call(hash, 'getNode, hashMap_internalHash(key), wkey); |
8 | ret entry == null ? null : entry.getKey(); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012718 |
| Snippet name: | hashMap_findKey |
| Eternal ID of this version: | #1012718/5 |
| Text MD5: | 5d8b1565c788acc241ecf1022b354e4e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-10 21:44:41 |
| Source code size: | 490 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 722 / 889 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |