Class ArrayUtil


  • public class ArrayUtil
    extends Object
    • Method Detail

      • emptyByteArray

        public static byte[] emptyByteArray()
      • emptyStringArray

        public static String[] emptyStringArray()
      • isEmpty

        public static boolean isEmpty​(byte[] array)
      • isEmpty

        public static boolean isEmpty​(Object[] array)
      • isNotEmpty

        public static boolean isNotEmpty​(Object[] array)
      • nullToEmpty

        public static String[] nullToEmpty​(String[] array)
      • indexOf

        public static int indexOf​(Object[] array,
                                  Object itemToFind)
      • subarray

        public static byte[] subarray​(byte[] array,
                                      int startIndexInclusive,
                                      int endIndexExclusive)
      • addAll

        public static byte[] addAll​(byte[] array1,
                                    byte... array2)
      • add

        public static <T> T[] add​(T[] array,
                                  int index,
                                  T item)
      • removeElement

        public static String[] removeElement​(String[] array,
                                             String element)
      • contains

        public static boolean contains​(Object[] array,
                                       Object objectToFind)
        See Also:
        ArrayUtils.contains(Object[], Object)