Class MoreArrays

java.lang.Object
de.cuioss.tools.lang.MoreArrays

public 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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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