Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7544L/52K).
!7 p-experiment { Map map = synchronizedTreeMap(); S name = className(map); print(name); S s; print(s = struct(map)); Map map2 = cast unstruct(s); assertEquals(name, className(map2)); assertEquals(map, map2); map.put("c", "d"); map.put("a", "b"); map.put("d", "e"); map.put("e", "f"); print(s = struct(map)); map2 = (Map) unstruct(s); assertEquals(name, className(map2)); assertEquals(map, map2); print("OK"); }
Began life as a copy of #1015840
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: | #1015843 |
Snippet name: | Test serializing synchronizedTreeMap (OK) |
Eternal ID of this version: | #1015843/2 |
Text MD5: | a677a132284eebe877ca48fb57341a19 |
Transpilation MD5: | 7db7fbd2148d033ade19a7d58ebddea6 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-28 18:13:14 |
Source code size: | 474 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 410 / 972 |
Version history: | 1 change(s) |
Referenced in: | [show references] |