Class ArrayUtil

java.lang.Object
dev.denux.dtp.util.ArrayUtil

public class ArrayUtil extends Object
A utility that contains methods regarding Arrays.
  • Method Details

    • listToCharArray

      public static char[] listToCharArray(List<Character> list)
      Converts a List of Character to a char array.
      Parameters:
      list - the List you want to convert.
      Returns:
      the converted char array.
    • addPrimitiveArrayToList

      public static void addPrimitiveArrayToList(Object object, Class<?> clazz, List<Object> list)
      Adds an (array of) primitives types to and List of Object.
      Parameters:
      object - The Object that can be an array of primitives or just a normal primitive.
      clazz - The Type of primitive.
      list - the List that will be edited.