Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1017916 // synchronizedSet - synonym of synchroHashSet + synchronize a set

JavaX fragment (include)

static <A> Set<A> synchronizedSet() {
  ret synchroHashSet();
}

static <A> Set<A> synchronizedSet(Set<A> set) {
  ifdef OurSyncCollections
    ret new SynchronizedSet(set);
  endifdef
  ifndef OurSyncCollections
    ret Collections.synchronizedSet(set);
  endifndef
}

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: 334 / 402
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)