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.size() == 0;
booleanisEmpty(Collection collection)
Is the provided collection null or empty?
return collection == null || collection.isEmpty();
booleanisEmpty(Collection collection)
Checks if is empty.
return collection == null || collection.isEmpty();
CollectionisEmpty(Collection collection, String messgae)
is Empty
if (collection == null || collection.isEmpty()) {
    throw new IllegalArgumentException(messgae);
return collection;
booleanisEmpty(Collection items)
is Empty
return items == null || items.isEmpty();
booleanisEmpty(Collection c)
is null or its size is 0
 isEmpty(null)   =   true; isEmpty({})     =   true; isEmpty({1})    =   false; 
return (c == null || c.size() == 0);
booleanisEmpty(final Collection values)
is Empty
return (values == null) || values.isEmpty();
booleanisEmpty(final Collection coll)
Return if a collection is empty.
return coll == null || coll.isEmpty();
booleanisEmpty(final Collection collection)
Returns true if the given collection is null or empty.
return collection == null || collection.isEmpty();
booleanisEmpty(final Collection collection)
is Empty
if (null == collection) {
    return true;
} else {
    return collection.isEmpty();