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

9
LINES

< > BotCompany Repo | #1005175 // asHashSet

JavaX fragment (include)

1  
static <A> HashSet<A> asHashSet(Collection<A> c) {
2  
  synchronized(collectionMutex(c)) {
3  
    ret new HashSet(c);
4  
  }
5  
}
6  
7  
static <A> HashSet<A> asHashSet(A[] a) {
8  
  ret a == null ? null : new HashSet(Arrays.asList(a));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005175
Snippet name: asHashSet
Eternal ID of this version: #1005175/4
Text MD5: 824854fa4b0052ffc5831ada453769dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-14 19:56:17
Source code size: 225 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 590
Version history: 3 change(s)
Referenced in: [show references]