package com.gitblit.utils;\r
\r
import java.util.ArrayList;\r
+import java.util.Arrays;\r
import java.util.Collection;\r
import java.util.List;\r
\r
}\r
return list;\r
}\r
+\r
+ public static <X> List<X> join(List<X>... elements) {\r
+ List<X> list = new ArrayList<X>();\r
+ for (List<X> element : elements) {\r
+ list.addAll(element);\r
+ }\r
+ return list;\r
+ }\r
+\r
+ public static <X> List<X> join(X[]... elements) {\r
+ List<X> list = new ArrayList<X>();\r
+ for (X[] element : elements) {\r
+ list.addAll(Arrays.asList(element));\r
+ }\r
+ return list;\r
+ }\r
}\r