List of utility methods to do List Null Empty
boolean | isNotEmpty(List Check if any list is not null and not empty
return list != null && !list.isEmpty();
|
boolean | isNotEmpty(List checks whether a list contains at least one entry return list != null && !list.isEmpty();
|
boolean | isNotEmpty(List This function checks if the list of the objects is empty or not return (isNotNull(objList) && (objList.size() > 0));
|
boolean | isNotNullAndEmpty(List> list) is Not Null And Empty return list != null && list.size() > 0;
|
boolean | isNotNullAndNotEmpty(List> list) is Not Null And Not Empty if (list == null) { return false; return !list.isEmpty(); |
boolean | isNull(List list) is Null return null == list;
|
boolean | isNullish(java.util.List value) is Nullish boolean result = false; if ((value == null) || (value.size() == 0)) { result = true; return result; |
boolean | isNullList(List l) Is Null or empty list if (l == null) { return true; } else if (l.size() == 0) { return true; return false; |
boolean | isNullOrEmpty(List list) is Null Or Empty if (list == null || list.size() == 0) { return true; return false; |
boolean | isNullOrEmpty(List list) is Null Or Empty return list == null || list.isEmpty();
|