Java Collection Empty isEmptyCollection(Collection list)

Here you can find the source of isEmptyCollection(Collection list)

Description

is Empty Collection

License

BSD License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean isEmptyCollection(Collection list) 

Method Source Code

//package com.java2s;
/*L//from  ww  w.  j av a2 s . c  o m
 *  Copyright SAIC, Ellumen and RSNA (CTP)
 *
 *
 *  Distributed under the OSI-approved BSD 3-Clause License.
 *  See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
 */

import java.util.Collection;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isEmptyCollection(Collection list) {
        boolean empty = false;
        if (list != null && list.size() > 0) {
            empty = false;
        } else {
            empty = true;
        }
        return empty;
    }
}

Related

  1. isEmpty(final Collection c)
  2. isEmpty(final Collection collection)
  3. isEmpty(final Collection source)
  4. isEmpty(final Collection v)
  5. isEmptyCollection(Collection collection)
  6. isEmptyCollection(Collection col)
  7. isEmptyCollection(Collection collection)
  8. isEmptyCollection(Object obj)
  9. isEmptyCollection(Object object)