Package io.cui.tools.lang
Class MoreArrays
- java.lang.Object
-
- io.cui.tools.lang.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 arenullor 0 == array.length- Author:
- Oliver Wolff
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(boolean[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(byte[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(char[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(double[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(float[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(int[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(long[] array)Simple check method for anullsafe check of the emptiness of the given parameter.static booleanisEmpty(short[] array)Simple check method for anullsafe check of the emptiness of the given parameter.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(byte[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(char[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(boolean[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(int[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(long[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(double[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(float[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
isEmpty
public static boolean isEmpty(short[] array)
Simple check method for anullsafe check of the emptiness of the given parameter.- Parameters:
array- to be checked, may be null- Returns:
trueis the given elements arenullor 0 == array.length
-
-