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

public static boolean isNotEmpty(Collection collection) 

Method Source Code


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

import java.util.Collection;

public class Main {
    public static boolean isNotEmpty(Collection collection) {
        return !isEmpty(collection);
    }/*from ww w.ja v  a2  s. co m*/

    public static boolean isEmpty(Collection collection) {
        boolean ret = true;
        if (collection != null && collection.size() > 0) {
            ret = false;
        }
        return ret;
    }
}

Related

  1. isNotEmpty(Collection collection)
  2. isNotEmpty(Collection collection)
  3. isNotEmpty(Collection collection)
  4. isNotEmpty(Collection collection)
  5. isNotEmpty(Collection collection)
  6. isNotEmpty(Collection collection)
  7. isNotEmpty(Collection collection)
  8. isNotEmpty(Collection collection)
  9. isNotEmpty(Collection list)