Java Collection Empty isNotEmpty(Collection c)

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

Description

is Not Empty

License

Apache License

Declaration

public static boolean isNotEmpty(Collection<?> c) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Collection;
import java.util.Map;

public class Main {
    public static boolean isNotEmpty(Collection<?> c) {
        if (c == null) {
            return false;
        }/*www.  ja  v  a 2 s .c om*/
        return !c.isEmpty();
    }

    public static boolean isNotEmpty(Map<?, ?> map) {
        if (map == null) {
            return false;
        }
        return !map.isEmpty();
    }
}

Related

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