List of utility methods to do List Null Empty
boolean | isEmpty(List This function checks if the list of the objects is empty return (isNull(objList) || (objList.size() == 0));
|
boolean | isEmpty(List is null or its size is 0 isEmpty(null) = true; isEmpty({}) = true; isEmpty({1}) = false; return (sourceList == null || sourceList.size() == 0);
|
boolean | isEmptyList(List inputList) To check whether the list is empty. return inputList == null || inputList.isEmpty();
|
boolean | isEmptyList(List list) is Empty List if (list != null && list.size() > 0) { return false; } else { return true; |
boolean | isHelp(List is Help if (args.isEmpty()) { return valOnEmpty; String first = args.get(0); return isHelpRequest(first); |
boolean | isListElementsEmpty(final List l) Checks a list of final Iterator it = l.iterator(); while (it.hasNext()) { final String s = (String) it.next(); if (s != null && s.trim().length() > 0) { return false; return true; ... |
boolean | isListEmpty(final List extends Object> list) Check whether List is empty. if (list == null || list.isEmpty()) { return true; return false; |
Boolean | isListEmpty(List oneList) is List Empty if (oneList == null || oneList.isEmpty()) { return true; return false; |
boolean | isListEmpty(List is List Empty if (list == null || list.size() == 0) { return true; for (String string : list) { if (!isEmpty(string)) { return false; return true; |
boolean | isListNullOrEmpty(List> lst) is List Null Or Empty return lst == null || lst.isEmpty();
|