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

booleanisNonEmptyArray(List value)
Used for parameter validation
return value != null && !value.isEmpty();
booleanisNotEmpty(final List aList)
is Not Empty
if (null != aList) {
    if (!aList.isEmpty()) {
        return true;
return false;
booleanisNotEmpty(List list)
is Not Empty
if (list == null || list.size() < 1) {
    return false;
return true;
booleanisNotEmpty(List list)
is Not Empty
boolean isNotEmpty = false;
if ((list != null) && (!list.isEmpty())) {
    isNotEmpty = true;
return isNotEmpty;
booleanisNotEmpty(List values)
Checks of the given list contains any elements.
return !isEmpty(values);
booleanisNotEmpty(List input)
is Not Empty
return input != null && input.size() > 0;
booleanisNotEmpty(List input)
is Not Empty
return input != null && input.size() > 0;
booleanisNotEmpty(List list)
is Not Empty
return !isEmpty(list);
booleanisNotEmpty(List value)
is Not Empty
return !isEmpty(value);
booleanisNotEmpty(List list)
This method checks if the list is not null and have elements.
return list != null && !list.isEmpty();