ModelComponentToVerilogConverter can now convert TriStateBuffers
[Mograsim.git] / plugins / net.mograsim.logic.model.verilog / src / net / mograsim / logic / model / verilog / utils / CollectionsUtils.java
index 6d118c3..2fe4553 100644 (file)
@@ -9,11 +9,12 @@ public class CollectionsUtils
        {
        }
 
-       public static <E> Set<E> union(Set<E> a, Set<E> b)
+       @SafeVarargs
+       public static <E> Set<E> union(Set<E>... sets)
        {
                Set<E> union = new HashSet<>();
-               union.addAll(a);
-               union.addAll(b);
+               for (Set<E> set : sets)
+                       union.addAll(set);
                return Set.copyOf(union);
        }
 }