Java Collection Empty isNotEmpty(Collection list)

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

Description

is Not Empty

License

Open Source License

Declaration

public static boolean isNotEmpty(Collection<? extends Object> list) 

Method Source Code


//package com.java2s;
import java.util.Collection;
import java.util.Map;

public class Main {
    public static boolean isNotEmpty(Map<? extends Object, ? extends Object> map) {
        return (map != null) && (!map.isEmpty());
    }/*w  ww .ja va  2  s .co  m*/

    public static boolean isNotEmpty(Collection<? extends Object> list) {
        return (list != null) && (!list.isEmpty());
    }

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

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

Related

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