1 | static <A> Set<A> synchronizedSet() { |
2 | ret synchroHashSet(); |
3 | } |
4 | |
5 | static <A> Set<A> synchronizedSet(Set<A> set) { |
6 | ifdef OurSyncCollections |
7 | ret new SynchronizedSet(set); |
8 | endifdef |
9 | ifndef OurSyncCollections |
10 | ret Collections.synchronizedSet(set); |
11 | endifndef |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017916 |
Snippet name: | synchronizedSet - synonym of synchroHashSet + synchronize a set |
Eternal ID of this version: | #1017916/5 |
Text MD5: | 78d3db40e4c3bc567244785f93661b9f |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-23 06:03:29 |
Source code size: | 279 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 333 / 402 |
Version history: | 4 change(s) |
Referenced in: | [show references] |