Java Utililty Methods Collection Empty

List of utility methods to do Collection Empty

Description

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

Method

booleanisEmpty(Collection c)
Check whether collection c is empty.
return ((c == null) || (c.size() == 0));
booleanisEmpty(Collection c)
is Empty
return null == c || 0 == c.size() ? true : false;
booleanisEmpty(Collection c)
True if the specified collection is null or empty.
return c == null || c.isEmpty();
booleanisEmpty(Collection col)
Returns true if collection is null or empty
if (col == null)
    return true;
return col.isEmpty();
booleanisEmpty(Collection collection)
Return true if the supplied Collection is null or empty.
return (collection == null || collection.isEmpty());
booleanisEmpty(Collection collection)
Check to see if the collection is null or empty
return collection == null || collection.isEmpty();
booleanisEmpty(Collection collection)
is Empty
return (collection == null) || collection.isEmpty();
booleanisEmpty(Collection collection)
is Empty
if (collection == null || collection.size() == 0) {
    return true;
return false;
booleanisEmpty(Collection collection)
Determines if a collection is empty
boolean empty = false;
if (collection == null) {
    empty = true;
} else if (collection.size() <= 0) {
    empty = true;
return empty;
booleanisEmpty(Collection collection)
is Empty
if (null == collection)
    return true;
return collection.isEmpty();