Class MoreArrays


  • public final class MoreArrays
    extends Object
    Overladed methods to check the emptiness of given primitive arrays. With empty being defined as is the given elements are null or 0 == array.length
    Author:
    Oliver Wolff
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEmpty​(boolean[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(byte[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(char[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(double[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(float[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(int[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(long[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
      static boolean isEmpty​(short[] array)
      Simple check method for a null safe check of the emptiness of the given parameter.
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(byte[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(char[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(boolean[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(int[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(long[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(double[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(float[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length
      • isEmpty

        public static boolean isEmpty​(short[] array)
        Simple check method for a null safe check of the emptiness of the given parameter.
        Parameters:
        array - to be checked, may be null
        Returns:
        true is the given elements are null or 0 == array.length