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 collection)
is Empty
return collection == null || collection.isEmpty();
booleanisEmpty(Collection collection)
is Empty
if (null == collection || collection.isEmpty()) {
    return true;
return false;
booleanisEmpty(Collection collection)
Is empty.
return (collection == null || collection.isEmpty());
booleanisEmpty(Collection items)
Returns true if the collection is null or contains no elements.
return (items == null || items.size() == 0);
booleanisEmpty(Collection list)
is Empty
return (list == null || list.size() == 0);
booleanisEmpty(Collection v)
See Javadoc above
boolean retVal = true;
if (v == null || v.isEmpty() || v.size() == 0) {
    retVal = true;
} else {
    retVal = false;
return retVal;
booleanisEmpty(Collection col)
is Empty
return !isNotEmpty(col);
booleanisEmpty(Collection c)
is Empty
return c == null || c.isEmpty();
booleanisEmpty(Collection c)
Checks if collection is empty.
return c == null || c.isEmpty();
booleanisEmpty(Collection c)
is Empty
return ((c == null) || (c.size() == 0));