List of utility methods to do Collection Empty
boolean | isEmpty(Collection> collection) Check if the collection is empty. return collection == null || collection.size() == 0;
|
boolean | isEmpty(Collection> o) is Empty return (o == null || o.isEmpty());
|
boolean | isEmpty(Collection> objs) is Empty if ((objs == null) || (objs.size() <= 0)) { return true; return false; |
boolean | isEmpty(Collection> value) Checks if is empty. if (value == null) return true; return value.isEmpty(); |
boolean | isEmpty(Collection> values) is Empty return values == null || values.size() == 0;
|
boolean | isEmpty(Collection Checks if the given Collection is null or empty. return c == null || c.isEmpty();
|
boolean | isEmpty(Collection is Empty return (null == data || 0 == data.size());
|
boolean | isEmpty(CollectionisEmpty (Collection): checks whether the collection is empty (either null or size 0)
if ((objectCollection == null) || (objectCollection.size() == 0)) return true; return false; |
boolean | isEmpty(Collection is Empty for (T t : c) { if (t != null) { return false; return true; |
boolean | isEmpty(Collection is Empty if (c == null || c.size() == 0) { return true; for (Iterator<T> iter = c.iterator(); iter.hasNext();) { if (iter.next() != null) { return false; return true; |