Java Collection Empty isNotEmpty(Collection collection)

Here you can find the source of isNotEmpty(Collection collection)

Description

is Not Empty

License

Open Source License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean isNotEmpty(Collection collection) throws Exception 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isNotEmpty(Collection collection) throws Exception {

        if (null != collection && !collection.isEmpty()) {

            return true;
        }//from w w w  .  j  a v  a  2 s  .com

        return false;
    }
}

Related

  1. isEmptyString(Collection theCollection)
  2. isNonEmpty(Collection coll)
  3. isNonEmpty(final Collection values)
  4. isNotEmpty(@SuppressWarnings("rawtypes") Collection collection)
  5. isNotEmpty(Collection c)
  6. isNotEmpty(Collection collection)
  7. isNotEmpty(Collection collection)
  8. isNotEmpty(Collection collection)
  9. isNotEmpty(Collection collection)