Uses 1059K of libraries. Click here for Pure Java version (7298L/39K).
1 | !7 |
2 | |
3 | set flag collectionMutex_debug. |
4 | |
5 | cmodule2 > DynTestModule { |
6 | void test { |
7 | L l = ll(); |
8 | assertSame("ArrayList", collectionMutex(l), l); |
9 | |
10 | new HashMap hmap; |
11 | assertSame("HashMap", collectionMutex(keySet(hmap)), hmap); |
12 | |
13 | NavigableMap map = caseInsensitiveMap(); |
14 | assertSameVerbose("keySet/caseInsensitiveMap", collectionMutex(keySet(map)), map); |
15 | assertSameVerbose("navigableKeys/caseInsensitiveMap", collectionMutex(navigableKeys(map)), map); |
16 | |
17 | map.put("bla", ""); |
18 | assertSameVerbose("prefixSubSet/navigableKeys/caseInsensitiveMap", collectionMutex(printClassName(prefixSubSet(navigableKeys(map), "bla"))), map); |
19 | |
20 | new WeakHashSet whs; |
21 | assertSameVerbose(collectionMutex(whs), whs.map); |
22 | } |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013620 |
Snippet name: | Test collectionMutex (OK) |
Eternal ID of this version: | #1013620/22 |
Text MD5: | 2fbeb7afbd16bcec09b418e1c7b45ca5 |
Transpilation MD5: | 20e0d6cc918de71622ca4049ed644927 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-03 21:41:34 |
Source code size: | 766 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 427 / 822 |
Version history: | 21 change(s) |
Referenced in: | [show references] |