Java Utililty Methods Array Empty Check

List of utility methods to do Array Empty Check

Description

The list of methods to do Array Empty Check are organized into topic(s).

Method

booleanisEmpty(Object[] values)
Checks of the given array contains any elements.
return values == null || values.length == 0;
booleanisEmpty(String[] array)
is Empty
return array == null || array.length == 0;
booleanisEmpty(T[] arr)
is Empty
return arr == null || arr.length <= 0;
booleanisEmpty(T[] arr)
return array is empty
return null == arr || arr.length == 0;
booleanisEmpty(T[] array)
is Empty
return array == null || array.length == 0;
booleanisEmpty(T[] array)
is Empty
return array == null || array.length == 0;
booleanisEmpty(T[] array)
Returns if the given array is null or empty.
return array == null || array.length == 0;
booleanisEmpty(T[] array)
Indicates whether an array are null or consist of null
if (array == null || array.length == 0)
    return true;
for (Object o : array) {
    if (o != null)
        return false;
return true;
booleanisEmpty(T[] array)
is Empty
return array == null || array.length == 0;
booleanisEmpty(T[] array)
Returns if the given array is null or empty.
return array == null || array.length == 0;