git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@23239
ac1ea38d-2e2b-0410-8846-
a27921b304fc
--- /dev/null
+package org.simantics.interop.utils;\r
+\r
+import java.util.Collection;\r
+\r
+/**\r
+ * TODO : merge to os.utils.datastructures.\r
+ * \r
+ * @author Marko Luukkainen <marko.luukkainen@vtt.fi>\r
+ *\r
+ */\r
+public class Arrays {\r
+ \r
+ public static <T> boolean containsAll(Collection<T> coll, T[] arr) {\r
+ for (T t : arr) {\r
+ if (!coll.contains(t))\r
+ return false;\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public static <T> void addAll(Collection<T> coll, T[] arr) {\r
+ for (T t : arr) {\r
+ coll.add(t);\r
+ }\r
+ }\r
+\r
+}\r