Libraryless. Click here for Pure Java version (2787L/17K).
1 | // works for both java.util-wrapped maps as well as our own |
2 | static <A, B> Map<A, B> unwrapSynchronizedMap(Map<A, B> map) { |
3 | if (eqOneOf(shortClassName(map), |
4 | "SynchronizedMap", |
5 | "SynchronizedSortedMap", |
6 | "SynchronizedNavigableMap")) |
7 | ret (Map) get_raw(map, 'm); |
8 | ret map; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017786 |
Snippet name: | unwrapSynchronizedMap |
Eternal ID of this version: | #1017786/5 |
Text MD5: | fa965ab59583cfc91c4c7ce7b2001ec7 |
Transpilation MD5: | 7bb8f38439b013d4151d966180a2e59c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 17:58:46 |
Source code size: | 295 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 474 / 577 |
Version history: | 4 change(s) |
Referenced in: | [show references] |