Java Collection Empty isNotEmpty(Collection coll)

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

Description

is Not Empty

License

Open Source License

Declaration

public static boolean isNotEmpty(Collection<?> coll) 

Method Source Code


//package com.java2s;

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

public class Main {

    public static boolean isNotEmpty(Collection<?> coll) {
        return !isEmpty(coll);
    }//ww  w  .  j a va  2s . c om

    public static boolean isNotEmpty(Map<?, ?> map) {
        return !isEmpty(map);
    }

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

    public static boolean isEmpty(Map<?, ?> map) {
        return map == null || map.size() <= 0;
    }
}

Related

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