Package org.processmining.framework.util
Class ArrayUtils
java.lang.Object
org.processmining.framework.util.ArrayUtils
-
Method Summary
-
Method Details
-
copyOf
public static <T> T[] copyOf(T[] source, int newlength) Makes a copy of an array. If newLength is greater than the length of source, then the result is an array with the contents of source, appended with null elements. If the new array is shorter, then only a part is copied.- Type Parameters:
T
- type of the array- Parameters:
source
- source arraynewlength
- new length of the target array- Returns:
-
concatAll
public static <T> T[] concatAll(T[] first, T[]... rest) Concatenates arrays- Type Parameters:
T
- type of the array- Parameters:
first
- first arrayrest
- arrays to be added- Returns:
-