Android Utililty Methods Collection Empty Check

List of utility methods to do Collection Empty Check

Description

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

Method

booleanisAnyStringEmpty( Collection collection)
is Any String Empty
if (collection == null || collection.isEmpty())
    return false;
for (String elem : collection) {
    if (TextUtils.isEmpty(elem))
        return true;
return false;
booleanisEmpty(Collection collection)
Return true if the supplied Collection is null or empty.
return (collection == null || collection.isEmpty());
booleanisEmpty(Collection coll)
Null-safe check if the specified collection is empty.
return (coll == null || coll.isEmpty());
booleanisEmpty(Collection coll)
is Empty
return (coll == null || coll.isEmpty());
booleanisEmpty(Collection collection)
Returns true if the given collection is null or empty.
return collection == null || collection.isEmpty();
booleanisEmpty(Collection collection)
is Empty
if (size(collection) == 0) {
    return true;
return false;
booleanisEmpty(Collection collection)
is Empty
return collection == null || collection.isEmpty();
booleanisEmpty(Collection list)
is Empty
if (list == null) {
    return true;
return list.isEmpty();
booleanisEmpty(Collection theCollection)
is Empty
return theCollection == null || theCollection.isEmpty();
booleanisEmpty(Collection theCollection)
is Empty
return theCollection == null || theCollection.isEmpty();