Android 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

booleanckNonEmpty(String... argvs)
ck Non Empty
for (String arg : argvs) {
    if (ckIsEmpty(arg)) {
        return true;
return false;
booleanisAnyStringEmpty(String[] array)
is Any String Empty
if (array == null || array.length <= 0)
    return false;
for (String elem : array) {
    if (TextUtils.isEmpty(elem))
        return true;
return false;
booleanisEmpty(Object[] array)

Checks if an array of Objects is empty or null.

return array == null || array.length == 0;
booleanisEmpty(T[] array)
Returns true if the array is null or empty
return array == null || array.length == 0;
booleanisEmpty(V[] sourceArray)
is null or its length is 0
return (sourceArray == null || sourceArray.length == 0);
booleanisEmpty(boolean[] array)

Checks if an array of primitive booleans is empty or null.

return array == null || array.length == 0;
booleanisEmpty(byte[] array)

Checks if an array of primitive bytes is empty or null.

return array == null || array.length == 0;
booleanisEmpty(char[] array)

Checks if an array of primitive chars is empty or null.

return array == null || array.length == 0;
booleanisEmpty(double[] array)

Checks if an array of primitive doubles is empty or null.

return array == null || array.length == 0;
booleanisEmpty(float[] array)

Checks if an array of primitive floats is empty or null.

return array == null || array.length == 0;