6d118c35ddb4b330e2aa13dfd56c9ff9bded95e1
[Mograsim.git] /
1 package net.mograsim.logic.model.verilog.utils;
2
3 import java.util.HashSet;
4 import java.util.Set;
5
6 public class CollectionsUtils
7 {
8         private CollectionsUtils()
9         {
10         }
11
12         public static <E> Set<E> union(Set<E> a, Set<E> b)
13         {
14                 Set<E> union = new HashSet<>();
15                 union.addAll(a);
16                 union.addAll(b);
17                 return Set.copyOf(union);
18         }
19 }