Java Collection Empty isNotEmpty(Collection colecao)

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

Description

is Not Empty

License

Open Source License

Declaration

public static boolean isNotEmpty(Collection<?> colecao) 

Method Source Code

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

import java.util.Collection;

public class Main {

    public static boolean isNotEmpty(Collection<?> colecao) {
        return colecao != null && !colecao.isEmpty();
    }//from ww w . j  ava2s  . com

    public static boolean isEmpty(Collection<?> colecao) {
        return colecao == null || colecao.isEmpty();
    }

    public static boolean isEmpty(String string) {
        return string == null || string.isEmpty();
    }
}

Related

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