Libraryless. Click here for Pure Java version (2493L/16K).
static <A> TreeSet<A> cloneTreeSet(Iterable<A> set) { if (set == null) ret new TreeSet; synchronized(collectionMutex(set)) { new TreeSet<A> s; addAll(s, set); ret s; } }
Began life as a copy of #1005270
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028070 |
Snippet name: | cloneTreeSet |
Eternal ID of this version: | #1028070/5 |
Text MD5: | d0ad164ec741321af6efd7dab04fd4fd |
Transpilation MD5: | a357be72d43a17656b067313c1c40f88 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-16 17:59:55 |
Source code size: | 194 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 175 / 288 |
Version history: | 4 change(s) |
Referenced in: | [show references] |