Class ArrayUtils


  • public final class ArrayUtils
    extends Object
    Since:
    1.0
    Author:
    Daniel Fernández
    • Method Detail

      • toStringArray

        public static Object[] toStringArray(Object target)
      • toIntegerArray

        public static Object[] toIntegerArray(Object target)
      • toLongArray

        public static Object[] toLongArray(Object target)
      • toDoubleArray

        public static Object[] toDoubleArray(Object target)
      • toFloatArray

        public static Object[] toFloatArray(Object target)
      • toBooleanArray

        public static Object[] toBooleanArray(Object target)
      • length

        public static int length(Object[] target)
      • isEmpty

        public static boolean isEmpty(Object[] target)
      • contains

        public static boolean contains(Object[] target,
                                       Object element)
      • containsAll

        public static boolean containsAll(Object[] target,
                                          Object[] elements)
      • containsAll

        public static boolean containsAll(Object[] target,
                                          Collection<?> elements)
      • copyOf

        public static <T,X> X[] copyOf(T[] original,
                                             int newLength,
                                             Class<? extends X[]> newType)
      • copyOf

        public static <T> T[] copyOf(T[] original,
                                     int newLength)
      • copyOf

        public static char[] copyOf(char[] original,
                                    int newLength)
      • copyOfRange

        public static char[] copyOfRange(char[] original,
                                         int from,
                                         int to)