Java Utililty Methods List Null Empty

List of utility methods to do List Null Empty

Description

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

Method

booleanisEmpty(List list)
is Empty
return list == null || list.size() < 1;
booleanisEmpty(List values)
is Empty
return values == null || values.isEmpty();
booleanisEmpty(List list)
is Empty
return list == null || list.isEmpty();
BooleanisEmpty(List aList)
The isEmpty method is a helper for determining if a list is empty or null and is null safe to boot!
if (aList == null || aList.isEmpty()) {
    return Boolean.TRUE;
} else {
    return Boolean.FALSE;
booleanisEmpty(List collection)
is Empty
return collection == null || collection.isEmpty();
voidisEmpty(List list, String message)
is Empty
if (list == null || list.isEmpty()) {
    return;
throw new IllegalArgumentException(message);
booleanisEmpty(List obj)
is Empty
return null == obj || obj.isEmpty();
booleanisEmpty(List list)
is Empty
if (list == null || list.size() == 0) {
    return true;
if (list.size() == 1 && isEmpty(list.get(0))) {
    return true;
return false;
booleanisEmpty(List aList)
Verifica se una lista e' nulla o vuota
return !isNotEmpty(aList);
booleanisEmpty(List list)
is Empty
return list == null || list.size() == 0;