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;

import java.util.Collection;

import java.util.Map;

public class Main {

    public static boolean isNotEmpty(Map<?, ?> map) {
        return (map != null) && (map.size() > 0);
    }//from  w w  w  .j  a  v a 2 s. com

    public static boolean isNotEmpty(Collection<?> collection) {
        return (collection != null) && (collection.size() > 0);
    }
}

Related

  1. isNotEmpty(Collection colecao)
  2. isNotEmpty(Collection coll)
  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 source)