The list of methods to do Collection Empty are organized into topic(s).
boolean
isAnyEmpty(Collection>... collections) is Any Empty
if (collections == null) {
return true;
for (Collection<?> collection : collections) {
if (isEmpty(collection)) {
return true;
return false;
boolean
isCollectionEmpty(Collection collection) is Collection Empty
boolean isEmpty = true;
Iterator iterator = collection.iterator();
while (iterator.hasNext() && isEmpty) {
Object object = iterator.next();
if (object != null) {
isEmpty = false;
return isEmpty;
boolean
isEmpty(Collection c) Check whether collection c is empty.
return ((c == null) || (c.size() == 0));