Class ArrayUtils

java.lang.Object
org.processmining.framework.util.ArrayUtils

public class ArrayUtils extends Object
  • 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 array
      newlength - 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 array
      rest - arrays to be added
      Returns: