List of utility methods to do Collection Empty
boolean | isNotEmptyOrNull(Collection> collection) is Not Empty Or Null return null != collection && !collection.isEmpty();
|
boolean | IsNotEmptyOrNull(Collection> elements) Is Not Empty Or Null return !collectionIsEmptyOrNull(elements);
|
boolean | isNullOrEmpty(Collection c) Indique si une collection est null ou vide. if (c == null) { return true; return c.isEmpty(); |
boolean | isNullOrEmpty(Collection c) is Null Or Empty return c == null || c.isEmpty();
|
boolean | isNullOrEmpty(Collection coll) This method is used to check for the null or empty Collection if (coll == null || coll.size() == 0) return true; return false; |
boolean | isNullOrEmpty(Collection collection) Test a Collection for empty or null. return collection == null || collection.size() == 0;
|
boolean | isNullOrEmpty(Collection collection) is Null Or Empty return ((collection == null) || (collection.isEmpty()));
|
boolean | isNullOrEmpty(Collection> col) Performs a thorough null and empty check. if ((col == null) || col.isEmpty()) return true; else { try { for (Iterator<?> iterator = col.iterator(); iterator.hasNext();) { if (iterator.next() != null) { return false; } catch (NullPointerException e) { return false; return true; |
boolean | isNullOrEmpty(Collection> collection) is Null Or Empty return collection == null || collection.isEmpty();
|
boolean | isNullOrEmpty(Collection> list) is Null Or Empty return list == null || list.size() < 1;
|