List of utility methods to do List Null Empty
boolean | isEmpty(List list) is Empty return list == null || list.size() < 1;
|
boolean | isEmpty(List values) is Empty return values == null || values.isEmpty();
|
boolean | isEmpty(List extends Object> list) is Empty return list == null || list.isEmpty();
|
Boolean | isEmpty(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; |
boolean | isEmpty(List> collection) is Empty return collection == null || collection.isEmpty();
|
void | isEmpty(List> list, String message) is Empty if (list == null || list.isEmpty()) { return; throw new IllegalArgumentException(message); |
boolean | isEmpty(List> obj) is Empty return null == obj || obj.isEmpty();
|
boolean | isEmpty(List is Empty if (list == null || list.size() == 0) { return true; if (list.size() == 1 && isEmpty(list.get(0))) { return true; return false; |
boolean | isEmpty(List Verifica se una lista e' nulla o vuota return !isNotEmpty(aList);
|
boolean | isEmpty(List is Empty return list == null || list.size() == 0;
|