Class ArrayUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean [] target,  element)  
      static boolean [] target, [] elements)  
      static boolean [] target, <?> elements)  
      static char[] copyOf​(char[] original, int newLength)  
      static <T> T[] copyOf​(T[] original, int newLength)  
      static <T,​X>
      X[]
      copyOf​(T[] original, int newLength, <? extends X[]> newType)  
      static char[] copyOfRange​(char[] original, int from, int to)  
      static boolean [] target)  
      static int [] target)  
      static []  target)  
      static []  target)  
      static []  target)  
      static []  target)  
      static []  target)  
      static []  target)  
      static []  target)  
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • toArray

        public static [] toArray​( target)
      • toStringArray

        public static [] toStringArray​( target)
      • toIntegerArray

        public static [] toIntegerArray​( target)
      • toLongArray

        public static [] toLongArray​( target)
      • toDoubleArray

        public static [] toDoubleArray​( target)
      • toFloatArray

        public static [] toFloatArray​( target)
      • toBooleanArray

        public static [] toBooleanArray​( target)
      • length

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

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

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

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

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

        public static <T,​X> X[] copyOf​(T[] original,
                                             int newLength,
                                             <? 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)