svoid test_restructure_syncMRUCache() { new MRUCache o; o.maxSize = 5; o.put("a", true); print(structure(synchronizedMap(o))); Map o2 = cast restructure(o); assertEqualsVerbose(ll(pair("a", true)), mapToPairs(o2)); assertEqualsVerbose(5, ((MRUCache) unwrapSynchronizedMap(o2)).maxSize); }
Began life as a copy of #1024862
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024879 |
Snippet name: | test_restructure_syncMRUCache |
Eternal ID of this version: | #1024879/1 |
Text MD5: | d683cab3aa03eb7eb41bbf753974e38c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-28 12:46:04 |
Source code size: | 310 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 201 / 249 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |