1 | static <A> LinkedHashSet<A> concatToOrderedSet(Collection<A>... lists) { |
2 | new LinkedHashSet<A> l; |
3 | for (Collection<A> list : lists) |
4 | if (list != null) |
5 | l.addAll(list); |
6 | return l; |
7 | } |
8 | |
9 | static <A> LinkedHashSet<A> concatToOrderedSet(Collection<? extends Collection<A>> lists) { |
10 | new LinkedHashSet<A> l; |
11 | for (Collection<A> list : lists) |
12 | if (list != null) |
13 | l.addAll(list); |
14 | return l; |
15 | } |
Began life as a copy of #1015558
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: | #1026302 |
Snippet name: | concatToOrderedSet (LinkedHashSet) |
Eternal ID of this version: | #1026302/1 |
Text MD5: | 82f00bb11e076cf2d2ab830f3944ccaf |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-15 15:14:13 |
Source code size: | 419 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 230 / 258 |
Referenced in: | [show references] |