Java Collection Check isBlank(Collection coll)

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

Description

is Blank

License

Apache License

Declaration

public static boolean isBlank(Collection coll) 

Method Source Code


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

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Main {

    public static boolean isBlank(Collection coll) {
        return (coll == null || coll.isEmpty());
    }//from   w  ww .  j  a  v a2 s.  com

    public static boolean isBlank(List list) {
        return (list == null || list.isEmpty());
    }

    public static boolean isBlank(Set set) {
        return (set == null || set.isEmpty());
    }

    public static boolean isBlank(Map map) {
        return (map == null || map.isEmpty());
    }
}

Related

  1. isArrayOrCollection(Class clazz)
  2. isArrayOrCollection(Object paramObj)
  3. isArrayOrCollection(Object v)
  4. isArrayOrCollection(String type)
  5. isAssignableFrom(final Collection> classes, final Class objectClass)
  6. isBlank(Collection c)
  7. isBlank(Collection c)
  8. isBlank(Collection collection)
  9. isBlank(final Collection c)